Mandatory Library tools
-xz utils
-pcre2
-(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!
installing source package ‘quantmod’ ...
** package ‘quantmod’ successfully unpacked and MD5 sums checked
** R
** demo
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
DONE (quantmod)
The downloaded source packages are in
‘/private/var/folders/bm/wg7t4j8j3tz_88yfzyfdkkhm0000gn/T/Rtmp9k8puA/downloaded_packages’
library(quantmod)
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
The following objects are masked from ‘package:base’:
as.Date, as.Date.numeric
Loading required package: TTR
Error: package or namespace load failed for ‘TTR’ in get(method, envir = home):
lazy-load database '/Library/Frameworks/R.framework/Versions/3.5.1-MRO/Resources/library/curl/R/curl.rdb' is corrupt
Error: package ‘TTR’ could not be loaded
In addition: Warning message:
In get(method, envir = home) : internal error -3 in R_decompress1
I restarted my R session only after I saw the error produced from loading curl via library(curl).
Then after I restarted my R session, I was able to load curl via library(curl) with no problems.
My remaining question is: what do the messages about the objects being masked mean when I load quantmod via library(quantmod)?
No, as long as you are aware of this, for example, if you want to use the base version of those functions you simply have to reference them explicitly, like this base::as.Date()
This is interesting. I hope to never come across needing to use these because I'm sure I'll forget. I'm happy to be able to use quantmod finally so I can actually learn in class.
Andre, thanks for all your patience in coaching me, the noob!
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it: