I tried to install and load in 'forecast' package, when I run the library (forecast), this is what it reads:
Error: package or namespace load failed for ‘forecast’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘TTR’
And when I tried to install and load in 'TTR', it shows message reading:
Error in library(TTR) : there is no package called ‘TTR’
And when I tried "install.packages("forecast", dependencies = TRUE)
library(forecast)"... it doesn't work here either. It shows the same as errors:
Error: package or namespace load failed for ‘forecast’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘TTR’
Note: I'm using the latest version of R (released on the first of November, 2021).
I'll appreciate if someone could help me figure out the issues. Thank you!!!
installing source package ‘TTR’ ...
** package ‘TTR’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
ERROR: compilation failed for package ‘TTR’
removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/TTR’
Warning in install.packages :
installation of package ‘TTR’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/0q/pl2zs3cj2_l6fl59mkfk1x3c0000gn/T/RtmpWXRgzV/downloaded_packages’
The easiest solution would be to answer "no" to this question, you would get a precompiled binary version that is a little older but much easier to install.
If you need to install the latest version from source, then you need to install Xcode in your system (not in R) and the recommended development tools for macOS systems. https://cran.r-project.org/bin/macosx/tools/
The link you just provided to install Xcode doesn't just seem to be working. It starts downloading.. goes the half way before it just comes to stop. Wondering if you could provide an alternate, please. Thank you!!