我无法从R Studio安装任何软件包。安装该软件包时发生以下错误。
> install.packages("quantmod")
Installing package into '/home/shilab/R/x86_64-pc-linux-gnu-library/3.5'
(as 'lib' is unspecified)
also installing the dependencies 'xts', 'TTR'
trying URL 'https://cran.rstudio.com/src/contrib/xts_0.11-2.tar.gz'
Content type 'application/x-gzip' length 537024 bytes (524 KB)
==================================================
downloaded 524 KB
trying URL 'https://cran.rstudio.com/src/contrib/TTR_0.23-4.tar.gz'
Content type 'application/x-gzip' length 310105 bytes (302 KB)
==================================================
downloaded 302 KB
trying URL 'https://cran.rstudio.com/src/contrib/quantmod_0.4-15.tar.gz'
Content type 'application/x-gzip' length 150327 bytes (146 KB)
==================================================
downloaded 146 KB
Error in ptions(error = function() { : could not find function "ptions"
Execution halted
Warning in install.packages :
installation of package 'xts' had non-zero exit status
Error in ptions(error = function() { : could not find function "ptions"
Execution halted
Warning in install.packages :
installation of package 'TTR' had non-zero exit status
Error in ptions(error = function() { : could not find function "ptions"
Execution halted
Warning in install.packages :
installation of package 'quantmod' had non-zero exit status
The downloaded source packages are in
'/tmp/Rtmp7dTsAe/downloaded_packages'