Categories
problems installing R packages in sampleapp 607p

the current script fails on this statement due to missing dependencies
Rscript --verbose -e 'install.packages("http://cran.r-project.org/src/contrib/Archive/arulesViz/arulesViz_0.1-8.tar.gz", repos=NULL, type="source")'
Log
installpackagecustom("http://cran.r-project.org/src/contrib/sROC_0.1-2.tar.gz", "http://cran.r-project.org/src/contrib/Archive/sROC/sROC_0.1-2.tar.gz")
Installing package into ‘/app/oracle/db/product/12c/dbhome_1/R/library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.r-project.org/src/contrib/Archive/sROC/sROC_0.1-2.tar.gz'
Error in download.file(p, destfile, method, mode = "wb", ...) :
cannot open URL 'http://cran.r-project.org/src/contrib/Archive/sROC/sROC_0.1-2.tar.gz'
In addition: Warning message:
In download.file(p, destfile, method, mode = "wb", ...) :
cannot open: HTTP status was '404 Not Found'
And when I run the verify I get this...
[oracle@demo R]$ ./verify_r_packages_install.sh
Not found: hexbin
Not found: ROCR
Not found: arulesViz
Not found: dendextend
Not found: htmltools
Not found: NMF
Not found: htmlwidgets
Not found: httr
Not found: yaml
Not found: igraph
Not found: matrixcalc
Not found: openssl
Not found: mime
Not found: sentiment
Not found: tm
Not found: jsonlite
Not found: seriation
Not found: plotly
Not found: slam
Not found: curl
Not found: sROC
Not found: viridis
[oracle@demo R]$
Any suggestions on how to fix this.
Answers
-
To be more specific with your error:
Log
installpackagecustom("http://cran.r-project.org/src/contrib/sROC_0.1-2.tar.gz", "http://cran.r-project.org/src/contrib/Archive/sROC/sROC_0.1-2.tar.gz")
Installing package into ‘/app/oracle/db/product/12c/dbhome_1/R/library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.r-project.org/src/contrib/Archive/sROC/sROC_0.1-2.tar.gz'
Error in download.file(p, destfile, method, mode = "wb", ...) :
cannot open URL 'http://cran.r-project.org/src/contrib/Archive/sROC/sROC_0.1-2.tar.gz'
In addition: Warning message:
In download.file(p, destfile, method, mode = "wb", ...) :
cannot open: HTTP status was '404 Not Found'
It could happens maybe because:
- The URL doesn't exist http://cran.r-project.org/src/contrib/Archive/sROC/sROC_0.1-2.tar.gz'
- You have some problems with your network connection
- You don't setting up the repo
If you see this script:
installpackagecustom("http://cran.r-project.org/src/contrib/sROC_0.1-2.tar.gz", "http://cran.r-project.org/src/contrib/Archive/sROC/sROC_0.1-2.tar.gz")
The script tries to install this package http://cran.r-project.org/src/contrib/sROC_0.1-2.tar.gz, then, the script cant get the package,
For that reason, it tries to install this package http://cran.r-project.org/src/contrib/Archive/sROC/sROC_0.1-2.tar.gz" which doesn't exists,
and you get the error.
Check this link, how to install R 3.2.0 in Oracle Enterprise Linux 7 ( ) , actually, R is a language which constantly has upgrades, so you have to take care with the version of the packages.
1. Start with first getting the repo (it depends on the OS & version that you are using)
2. Install the package with R.
3. And finally, test your R packages
Edit: the link is in spanish, sorry about it.
0