Closed michelefioretti closed 3 years ago
You need to reinstall xts.
Thank you for the quick reply!
I get the following issue with xts
devtools::install_github("joshuaulrich/xts")
Downloading GitHub repo joshuaulrich/xts@HEAD
Error: Failed to install 'xts' from GitHub:
Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
and then the code opens this link
I can instead install xts in the standard way, but then I get an error from quantmod
install.packages("xts")
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/xts_0.12.1.tgz'
Content type 'application/x-gzip' length 930515 bytes (908 KB)
==================================================
downloaded 908 KB
The downloaded binary packages are in
/var/folders/7_/n_pmyvxs5b56zdy5qh4gfmt8x_n_tl/T//RtmpEAXW1l/downloaded_packages
> library(xts)
Loading required package: zoo
Attaching package: ‘zoo’
The following objects are masked from ‘package:base’:
as.Date, as.Date.numeric
Attaching package: ‘xts’
The following objects are masked from ‘package:dplyr’:
first, last
Warning messages:
1: package ‘xts’ was built under R version 3.6.2
2: package ‘zoo’ was built under R version 3.6.2
> devtools::install_github("joshuaulrich/quantmod")
Downloading GitHub repo joshuaulrich/quantmod@HEAD
✓ checking for file ‘/private/var/folders/7_/n_pmyvxs5b56zdy5qh4gfmt8x_n_tl/T/RtmpEAXW1l/remotesfa1216b10b13/joshuaulrich-quantmod-a2aad16/DESCRIPTION’ ...
─ preparing ‘quantmod’:
✓ checking DESCRIPTION meta-information ...
─ installing the package to process help pages
─ saving partial Rd database (5.5s)
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘quantmod_0.4.18.1.tar.gz’
Warning: invalid uid value replaced by that for user 'nobody'
Warning: invalid gid value replaced by that for user 'nobody'
* installing *source* package ‘quantmod’ ...
** using staged installation
** R
** demo
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package ‘xts’ was built under R version 3.6.2
Execution halted
ERROR: lazy loading failed for package ‘quantmod’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/quantmod’
Error: Failed to install 'quantmod' from GitHub:
(converted from warning) installation of package ‘/var/folders/7_/n_pmyvxs5b56zdy5qh4gfmt8x_n_tl/T//RtmpEAXW1l/filefa12414e1808/quantmod_0.4.18.1.tar.gz’ had non-zero exit status
Could you please help me with that?
Sorry, I didn't look close enough. The problem is that you're using R-3.6.1 and CRAN only provides builds for the two most recent versions of R. So you either need to build xts from source, or upgrade to at least R-3.6.2 or later. I recommend that you upgrade to R-4.0.4 and update all your packages.
I'm going to close this, since I can't fix it by changing anything in quantmod. But I'm happy to continue to help.
I have an error installing quantmod
The error is described in the following R code
Could you please help me? Thank you
Session Info