'Rpy2 not finding package despite finding other packages within the same library
I'm using Rpy2 version 3.3.2 and despite being able to find other R packages such as 'spd', 'rugarch', 'Matrix', etc. I am not able to use 'rmgarch' despite all of these packages being in the path given by .libPaths()
. When loading the packages using utils.install_packages('rmgarch')
, I am told about the package and it's dependancies: The downloaded source packages are in ‘/private/var/folders/...
. Yet when trying to use the packages
robjects.r('''
library('quantmod')
library('rmgarch')
library('Bessel') #A dependancy
f <- function(u) {
l<-u
}
''')
all are loaded except 'rmgarch' and it's dependency Bessel. The error given is: RRuntimeError: Error in library("rmgarch") : there is no package called ‘rmgarch’
. I have tried specifying the location of the library utils.install_packages('rmgarch', lib_loc=[path from .libPaths()])
but have not been successful. I don't know what else to try.
Any advice/help would be greatly appreciated:)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|