I'm trying to use R for a class. I am using MacOS Mojave 10.14.6 (18G3020).
For R, I installed:
- Microsoft Open R version 3.5.1
I also read that I need to download compiler files to run R on my machine
(https://mac.r-project.org/tools/) so per the link's instructions, I installed:
- GNU Fortran 8.2
- Mandatory Library tools
-(disregarded bzip because my system is 10.14.6 isn't old)
I also installed Xquartz (XQuartz 2.7.11 (xorg-server 1.18.4)) for good measure and made it my default.
For my class, the library I need to load is 'quantmod'. The following happened after I installed it and tried to load the library. It seems like there's a problem with the object files in my library. Any suggestions? Thanks!
trying URL 'https://mran.microsoft.com/snapshot/2018-08-01/src/contrib/quantmod_0.4-13.tar.gz'
Content type 'application/octet-stream' length 142084 bytes (138 KB)
downloaded 138 KB
- installing source package ‘quantmod’ ...
** package ‘quantmod’ successfully unpacked and MD5 sums checked
** byte-compile and prepare package for lazy loading
*** installing help indices
** building package indices
** testing if installed package can be loaded
- DONE (quantmod)
The downloaded source packages are in
Loading required package: TTR
Error: package or namespace load failed for ‘TTR’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5.1-MRO/Resources/library/curl/libs/curl.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.5.1-MRO/Resources/library/curl/libs/curl.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.5.0-MRO/Resources/lib/libR.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.5.1-MRO/Resources/library/curl/libs/curl.so
Reason: image not found
Error: package ‘TTR’ could not be loaded