Replacing installed package with development version in R - r

I'm cobbling together instructions for how to install the development version of a package when I already have the package installed, but I'm a bit confused. My specific need is to install the development version of lme4 so I can use the predict function.
First, I know that I should FIND the development version of lme4, which I've located (in a general sense) at this URL. I'm running Mac OSX 10.6.8 (Snow Leopard), and R version 2.14.1, so I navigate to the correct folder and download the *.tgz file. But when I attempt to install the package using the command:
install.packages("~/Downloads/lme4_0.99999911-2.tgz", repos = NULL)
I receive an error messaging stating:
Warning in install.packages :
package ‘~/Downloads/lme4_0.99999911-2.tgz’ is not available (for R version 2.14.1)
(1) How do I find out which version of R I need to be running in order to access the development version of the package, and (2) How do I update my version of R and/or replace the pre-existing version of lme4?
UPDATE:
I've tried another approach by using the command:
> library("devtools")
> install_github("lme4",user="lme4")
Unfortunately, this yields the output..
Installing github repo(s) lme4/master from lme4
Installing lme4.zip from https://github.com/lme4/lme4/zipball
Installing lme4
Installing dependencies for lme4:
RcppEigen, minqa, RcppEigen
Installing package(s) into ‘/Library/Frameworks/R.framework/Versions/2.14/Resources/library’
(as ‘lib’ is unspecified)
trying URL 'http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.14/minqa_1.2.1.tgz'
Content type 'application/x-gzip' length 945252 bytes (923 Kb)
opened URL
==================================================
downloaded 923 Kb
The downloaded packages are in
/var/folders/IZ/IZlpzJbtHEq7NQxUHPvExk+++TI/-Tmp-//Rtmpt8YCsF/downloaded_packages
* checking for file '/private/var/folders/IZ/IZlpzJbtHEq7NQxUHPvExk+++TI/-Tmp-/Rtmpt8YCsF/lme4-lme4-7a6f816/DESCRIPTION' ... OK
* preparing 'lme4':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* looking to see if a 'data/datalist' file should be added
* building 'lme4_0.99999911-2.tar.gz'
ERROR: dependency 'RcppEigen' is not available for package 'lme4'
* removing '/Library/Frameworks/R.framework/Versions/2.14/Resources/library/lme4'
Error: Command failed (1)
In addition: Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘RcppEigen’ is not available (for R version 2.14.1)
> install.packages("~/Downloads/RcppEigen_0.3.1.2.1.tgz", repos = NULL)
Thanks! Hopefully my question will be useful to other R novices out there...
UPDATE 2
Based on the output above, I've upgraded to R 3.0.0. However, now I'm getting the following error when I try to install the package I've downloaded:
> install.packages("~/Downloads/lme4_0.99999911-2.tgz", repos = NULL)
Warning in install.packages :
package ‘~/Downloads/lme4_0.99999911-2.tgz’ is not available (for R version 3.0.0)
Installing package into ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library’
(as ‘lib’ is unspecified)
'.path.package' is deprecated.
Use 'path.package' instead.
See help("Deprecated")

Related

Unable to install XML package to Rstudio

I'm trying to install XML Package to Rstudio Using the ribbon: Tools--> Install Packages --> Packages: to type XML, but the dropdown list opend had only this packages : xml2, XML2R, xml2relational, xmlparsedata, xmlr, xmlrpc2.
Next, I tried:
install.packages("XML")
but received the warning:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘D:/BCDD/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘XML’ is not available (for R version 3.6.3)
So I followed the link above :https://cran.rstudio.com/bin/windows/Rtools/
and using these questions:
Why can't I install the XML package
Cannot install package XML to R
Then tried
install.packages("XML", repos = "http://www.omegahat.net/R",type="source")
but received the same warning and more:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘D:/BCDD/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'http://www.omegahat.net/R/src/contrib/XML_3.99-0.tar.gz'
Content type 'application/x-gzip' length 1547930 bytes (1.5 MB)
downloaded 1.5 MB
* installing *source* package 'XML' ...
** using staged installation
Please define LIB_XML (and LIB_ZLIB, LIB_ICONV)
ERROR: configuration failed for package 'XML'
* removing 'D:/BCDD/Documents/R/win-library/3.6/XML'
Warning in install.packages :
installation of package ‘XML’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\BCDD\AppData\Local\Temp\RtmpAhAYpl\downloaded_packages’
Any help to how to install the package XML will be appreciated
You can download the version you want from here: https://cran.rstudio.com//src/contrib/Archive/XML/
According to their GitHub repo, version 3.99-0.3 should work for you, I can't try it out coz I have R4.0 and I can install only the most recent [3.99-0.5].
Alternatively, when you choose the version you want and run on your R console:
devtools::install_version("XML", version = "3.99-0.3") # or the version you want
Have a try. Let me know.
Check this RStudio Support post which covers how to install older versions of packages.
Be sure to install rtools35 from the archive
Going to R 4.0.2 is not a particularly bad idea at this point.

Is coefplot2 still supported for current version of R version 3.6.1 (2019-07-05) -- "Action of the Toes"

I use coefplot2 to plot regression estimates for ecological data. I have a new computer so just setting up. All other packages and code working for new set-up. But dearly love to keep using coefplot2 but need assistance.
I have tried to install coefplot2 using R forge and bolker source sites as recommended in several posts here and on other sites as follows, with no luck.
install.packages("coefplot2", repos="http://www.math.mcmaster.ca/bolker/R", type="source")
install.packages("coefplot2",repos="http://r-forge.r-project.org")
> install.packages("coefplot2", repos="http://www.math.mcmaster.ca/bolker/R", type="source")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘\\staff.ad.griffith.edu.au/ud/fr/s2903680/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'http://www.math.mcmaster.ca/bolker/R/src/contrib/coefplot2_0.1.3.2.tar.gz'
Content type 'application/x-gzip' length 1357869 bytes (1.3 MB)
downloaded 1.3 MB
'\\staff.ad.griffith.edu.au\ud\fr\s2903680\Desktop\Research\data_analysis_pumice\havre'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
* installing *source* package 'coefplot2' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in findpack(package, lib.loc) :
there is no package called 'coefplot2'
Calls: <Anonymous> -> findpack
Execution halted
ERROR: lazy loading failed for package 'coefplot2'
* removing '\\staff.ad.griffith.edu.au/ud/fr/s2903680/Documents/R/win-library/3.6/coefplot2'
Warning in install.packages :
installation of package ‘coefplot2’ had non-zero exit status
Have installed previous dependencies eg installation asked for 'reshape' to be installed. I wonder do I need to install 'rtools'. Seems silly as I am not a developer - but if it works I'll do it.
(Not really an answer but too long for a comment)
For me, both install-with-source-from-repo:
install.packages("coefplot2",
repos="http://www.math.mcmaster.ca/bolker/R",
type="source")
and install-from-github:
remotes::install_github("palday/coefplot2",
subdir = "pkg")
work (the latter is just a copy/mirror of an R-forge repo) - the latter is a little more up to date.
My guess is that the problem is with the network drive/UNC path: there are other SO questions here and here that suggest this could be a problem.
Can you try install.packages() with lib='some_local_directory' (and then library("coefplot2",lib.loc='some_local_directory') ?
The last part of this comment is that I've transitioned from coefplot2 to broom (for coefficient tables) + ggplot2/dotwhisker - it's a more modular system that's more flexible and handles a broader range of model types. (Assuming you're OK with ggplot2 solutions.)

ERROR: dependency 'ROracle' is not available for package 'ora' [duplicate]

I'm trying to install ROracle package on my Windows 7 client. I have Oracle Instant client and Rtools installed, DBI package is istalled, OCI32_LIB environmental variable has been set. But when I try to install from command line:
C:\Temp>R CMD INSTALL --build ROracle_1.1-10.tar.gz
* installing to library 'C:/Users/myaccount/Documents/R/win-library/3.0'
* installing *source* package 'ROracle' ...
** package 'ROracle' successfully unpacked and MD5 sums checked
ERROR: configuration failed for package 'ROracle'
* removing 'C:/Users/myaccount/Documents/R/win-library/3.0/ROracle'
C:\Temp>
When I try to install from source:
> install.packages("ROracle",type = "source")
Warning in install.packages :
package ‘ROracle’ is not available (for R version 3.0.0)
Installing package into ‘C:/Users/myaccount/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://cran.at.r-project.org/src/contrib/ROracle_1.1-10.tar.gz'
Content type 'application/x-gzip' length 168193 bytes (164 Kb)
opened URL
downloaded 164 Kb
* installing *source* package 'ROracle' ...
** package 'ROracle' successfully unpacked and MD5 sums checked
ERROR: configuration failed for package 'ROracle'
* removing 'C:/Users/myaccount/Documents/R/win-library/3.0/ROracle'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-30~1.0/bin/i386/R" CMD INSTALL -l "C:\Users\myaccount\Documents\R\win-library\3.0" C:\Users\myaccount\AppData\Local\Temp\RtmpGggbyp/downloaded_packages/ROracle_1.1-10.tar.gz' had status 1
Warning in install.packages :
installation of package ‘ROracle’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\myaccount\AppData\Local\Temp\RtmpGggbyp\downloaded_packages’
What should I do, how to proceed?
From http://jgilfillan.github.io/2016/05/28/how-to-install-roracle-in-windows-7/
Download binary from oracle:
http://www.oracle.com/technetwork/database/database-technologies/r/roracle/downloads/index.html
The run the following command in r, substituting the file path:
setwd('xxxxx') # set to path of download
install.packages('ROracle_1.2-1.zip', repos = NULL)
Then load the library and use the package - you may have to change XXXX to whatever is in your TNS Names:
library('ROracle')
drv <- dbDriver("Oracle")
con <- dbConnect(drv, "USER GOES HERE", "PASSWORD GOES HERE", dbname='XXX')
test connection:
dbReadTable(con, 'DUAL')
Note that this has also been confirmed to work on Windows 10.
I had this exact problem as well, including the OCI_INC error. They actually talk about it in the INSTALL file in the .tar.gz package, you can read more there.
You have to set the OCI_INC variable to the include directory like this:
set OCI_INC=C:\oracle\product\11.2.0\client_2\oci\include
Or whereever your file is. Here was my complete setup to get things installed from an Admin privileged command line.
set OCI_LIB64=C:\oracle\product\11.2.0\client_2\BIN
set OCI_INC=C:\oracle\product\11.2.0\client_2\oci\include
set PATH=C:\oracle\product\11.2.0\client_2\BIN;C:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;%PATH%
"C:/PROGRA~1/R/R-30~1.1/bin/x64/R" CMD INSTALL --build "C:/Your/Path/To/ROracle_1.1-10.tar.gz"
Also, make sure to change client_2 to client_1 and OCI_LIB64 to OCI_LIB32 if you are trying to do a 32-bit install.
After following the steps (highlighted in red boxes).
I also ran commands below on R.
So, everything went through well on a Windows 7 64-bit, R 3.4 64bit environment.
Sys.setenv(OCI_LIB64="C:/Oracle/instantclient_12_2/")
Sys.setenv(OCI_INC="C:/Oracle/product/11.2.0/client_1/oci/include")
install.packages("ROracle", dep=T)
I had exactly this problem. It was caused because when installing RTools I did not check the 'edit PATH' checkbox. I uninstalled RTools and reinstalled it again, this time making sure the checkbox was checked, and it worked first time! Hope this helps.
I had a similar error when trying to install ROracle from source.1
After searching around a bit I had to undertake what others have mentioned as well as redownloading the tar.gz. When I double checked the download size it was 10KB instead of 234KB.
Re-Download source from: http://cran.r-project.org/web/packages/ROracle/index.html
Updated the following Environmental Varibles in windows
SET PATH=C:\Rtools\bin;C:\Rtools\gcc-4.6.3;%PATH%
SET OCI_INC=C:\Oracle_11G_ClientR2\product\11.2.0\client_1\oci\include
SET OCI_LIB32=C:\Oracle_11G_ClientR2\product\11.2.0\client_1\BIN
SET OCI_LIB64=C:\Oracle_11G_ClientR2\product\11.2.0\client_1\BIN
R CMD INSTALL --build "C:\temp\ROracle_1.1-12.tar.gz"
Output should look like the following:
1 Here is what the previous error looked like:
C:\Temp>R CMD INSTALL --build "C:\\temp\\ROracle_1.1-12.tar.gz"
Error in getOctD(x, offset, len) : invalid octal digit
Along with the 'Basic Package' and the 'ODBC Package', with Oracle 11g, you should copy unpacked files from the 'SDK package' into the subdirectory instantclient_11_2. In this case, you will not need to define the environment variable Sys.setenv (OCI_INC = "...").
This is what worked for me:
Sys.setenv(OCI_LIB32="C:/oracle/product/12.1.0/client_1/BIN/")
Sys.setenv(OCI_INC="C:/oracle/product/12.1.0/client_1/oci/include/")
install.packages("ROracle")
install.packages("P:/Strategic-Primary/documentation/R/Packages/DBI_1.0.0.zip", repos = NULL, type = "win.binary")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
package ‘DBI’ successfully unpacked and MD5 sums checked
> setwd('E:\R\packages')
Error: '\R' is an unrecognized escape in character string starting "'E:\R"
> setwd('E:\\R\\packages')
> install.packages('ROracle-1.3.2.zip')
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘ROracle-1.3.2.zip’ is not available (for R version 3.6.0)
> install.packages('ROracle-1.3.1.zip')
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘ROracle-1.3.1.zip’ is not available (for R version 3.6.0)
> Sys.setenv(OCI_LIB32="C:/oracle/product/12.1.0/client_1/BIN/")
> Sys.setenv(OCI_INC="C:/oracle/product/12.1.0/client_1/oci/include/")
> install.packages("ROracle")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘ROracle’
These will not be installed
> install.packages('ROracle-1.3.1.zip')
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘ROracle-1.3.1.zip’ is not available (for R version 3.6.0)
> install.packages('ROracle-1.3.2.zip')
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘ROracle-1.3.2.zip’ is not available (for R version 3.6.0)
I installed SDK, ODBC and basic install client (also set Env variable path) and it is still not working for me. Any advise pls?

How to install ROracle package on Windows 7?

I'm trying to install ROracle package on my Windows 7 client. I have Oracle Instant client and Rtools installed, DBI package is istalled, OCI32_LIB environmental variable has been set. But when I try to install from command line:
C:\Temp>R CMD INSTALL --build ROracle_1.1-10.tar.gz
* installing to library 'C:/Users/myaccount/Documents/R/win-library/3.0'
* installing *source* package 'ROracle' ...
** package 'ROracle' successfully unpacked and MD5 sums checked
ERROR: configuration failed for package 'ROracle'
* removing 'C:/Users/myaccount/Documents/R/win-library/3.0/ROracle'
C:\Temp>
When I try to install from source:
> install.packages("ROracle",type = "source")
Warning in install.packages :
package ‘ROracle’ is not available (for R version 3.0.0)
Installing package into ‘C:/Users/myaccount/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://cran.at.r-project.org/src/contrib/ROracle_1.1-10.tar.gz'
Content type 'application/x-gzip' length 168193 bytes (164 Kb)
opened URL
downloaded 164 Kb
* installing *source* package 'ROracle' ...
** package 'ROracle' successfully unpacked and MD5 sums checked
ERROR: configuration failed for package 'ROracle'
* removing 'C:/Users/myaccount/Documents/R/win-library/3.0/ROracle'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-30~1.0/bin/i386/R" CMD INSTALL -l "C:\Users\myaccount\Documents\R\win-library\3.0" C:\Users\myaccount\AppData\Local\Temp\RtmpGggbyp/downloaded_packages/ROracle_1.1-10.tar.gz' had status 1
Warning in install.packages :
installation of package ‘ROracle’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\myaccount\AppData\Local\Temp\RtmpGggbyp\downloaded_packages’
What should I do, how to proceed?
From http://jgilfillan.github.io/2016/05/28/how-to-install-roracle-in-windows-7/
Download binary from oracle:
http://www.oracle.com/technetwork/database/database-technologies/r/roracle/downloads/index.html
The run the following command in r, substituting the file path:
setwd('xxxxx') # set to path of download
install.packages('ROracle_1.2-1.zip', repos = NULL)
Then load the library and use the package - you may have to change XXXX to whatever is in your TNS Names:
library('ROracle')
drv <- dbDriver("Oracle")
con <- dbConnect(drv, "USER GOES HERE", "PASSWORD GOES HERE", dbname='XXX')
test connection:
dbReadTable(con, 'DUAL')
Note that this has also been confirmed to work on Windows 10.
I had this exact problem as well, including the OCI_INC error. They actually talk about it in the INSTALL file in the .tar.gz package, you can read more there.
You have to set the OCI_INC variable to the include directory like this:
set OCI_INC=C:\oracle\product\11.2.0\client_2\oci\include
Or whereever your file is. Here was my complete setup to get things installed from an Admin privileged command line.
set OCI_LIB64=C:\oracle\product\11.2.0\client_2\BIN
set OCI_INC=C:\oracle\product\11.2.0\client_2\oci\include
set PATH=C:\oracle\product\11.2.0\client_2\BIN;C:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;%PATH%
"C:/PROGRA~1/R/R-30~1.1/bin/x64/R" CMD INSTALL --build "C:/Your/Path/To/ROracle_1.1-10.tar.gz"
Also, make sure to change client_2 to client_1 and OCI_LIB64 to OCI_LIB32 if you are trying to do a 32-bit install.
After following the steps (highlighted in red boxes).
I also ran commands below on R.
So, everything went through well on a Windows 7 64-bit, R 3.4 64bit environment.
Sys.setenv(OCI_LIB64="C:/Oracle/instantclient_12_2/")
Sys.setenv(OCI_INC="C:/Oracle/product/11.2.0/client_1/oci/include")
install.packages("ROracle", dep=T)
I had exactly this problem. It was caused because when installing RTools I did not check the 'edit PATH' checkbox. I uninstalled RTools and reinstalled it again, this time making sure the checkbox was checked, and it worked first time! Hope this helps.
I had a similar error when trying to install ROracle from source.1
After searching around a bit I had to undertake what others have mentioned as well as redownloading the tar.gz. When I double checked the download size it was 10KB instead of 234KB.
Re-Download source from: http://cran.r-project.org/web/packages/ROracle/index.html
Updated the following Environmental Varibles in windows
SET PATH=C:\Rtools\bin;C:\Rtools\gcc-4.6.3;%PATH%
SET OCI_INC=C:\Oracle_11G_ClientR2\product\11.2.0\client_1\oci\include
SET OCI_LIB32=C:\Oracle_11G_ClientR2\product\11.2.0\client_1\BIN
SET OCI_LIB64=C:\Oracle_11G_ClientR2\product\11.2.0\client_1\BIN
R CMD INSTALL --build "C:\temp\ROracle_1.1-12.tar.gz"
Output should look like the following:
1 Here is what the previous error looked like:
C:\Temp>R CMD INSTALL --build "C:\\temp\\ROracle_1.1-12.tar.gz"
Error in getOctD(x, offset, len) : invalid octal digit
Along with the 'Basic Package' and the 'ODBC Package', with Oracle 11g, you should copy unpacked files from the 'SDK package' into the subdirectory instantclient_11_2. In this case, you will not need to define the environment variable Sys.setenv (OCI_INC = "...").
This is what worked for me:
Sys.setenv(OCI_LIB32="C:/oracle/product/12.1.0/client_1/BIN/")
Sys.setenv(OCI_INC="C:/oracle/product/12.1.0/client_1/oci/include/")
install.packages("ROracle")
install.packages("P:/Strategic-Primary/documentation/R/Packages/DBI_1.0.0.zip", repos = NULL, type = "win.binary")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
package ‘DBI’ successfully unpacked and MD5 sums checked
> setwd('E:\R\packages')
Error: '\R' is an unrecognized escape in character string starting "'E:\R"
> setwd('E:\\R\\packages')
> install.packages('ROracle-1.3.2.zip')
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘ROracle-1.3.2.zip’ is not available (for R version 3.6.0)
> install.packages('ROracle-1.3.1.zip')
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘ROracle-1.3.1.zip’ is not available (for R version 3.6.0)
> Sys.setenv(OCI_LIB32="C:/oracle/product/12.1.0/client_1/BIN/")
> Sys.setenv(OCI_INC="C:/oracle/product/12.1.0/client_1/oci/include/")
> install.packages("ROracle")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘ROracle’
These will not be installed
> install.packages('ROracle-1.3.1.zip')
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘ROracle-1.3.1.zip’ is not available (for R version 3.6.0)
> install.packages('ROracle-1.3.2.zip')
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/xxx/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘ROracle-1.3.2.zip’ is not available (for R version 3.6.0)
I installed SDK, ODBC and basic install client (also set Env variable path) and it is still not working for me. Any advise pls?

error installing RandForestGUI (hence 'rgl', 'X11) in "R version 2.13.1 (2011-07-08)"

I have installed "R version 2.13.1 (2011-07-08)", over "Ubuntu 10.04 - Lucid Lynx".
(I use RStudio 0.94.92), with all the headers needed to compile the many different packages I already installed.
I got stuck with : install.packages("RandForestGUI"). Everything ran smoothly until
.....
* DONE (sciplot)
ERROR: dependency ‘rgl’ is not available for package ‘clusterSim’
* removing ‘/home/rs/R/i486-pc-linux-gnu-library/2.13/clusterSim’
Warning in install.packages :
installation of package 'clusterSim' had non-zero exit status
ERROR: dependency ‘clusterSim’ is not available for package ‘RandForestGUI’
* removing ‘/home/rs/R/i486-pc-linux-gnu-library/2.13/RandForestGUI’
Warning in install.packages :
installation of package 'RandForestGUI' had non-zero exit status
I tried to : install.packages("rgl") but
Installing package(s) into ‘/home/rs/R/i486-pc-linux-gnu-library/2.13’
(as ‘lib’ is unspecified)
provo con l'URL 'http://rm.mirror.garr.it/mirrors/CRAN/src/contrib/rgl_0.92.798.tar.gz'
Content type 'application/x-gzip' length 1677772 bytes (1.6 Mb)
URL aperto
==================================================
downloaded 1.6 Mb
* installing *source* package ‘rgl’ ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
….
checking for libpng-config... yes
configure: using libpng-config
configure: using libpng dynamic linkage
checking for X... no
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package ‘rgl’
* removing ‘/home/rs/R/i486-pc-linux-gnu-library/2.13/rgl’
Warning in install.packages :
installation of package 'rgl' had non-zero exit status
Finally I tried : install.packages("X11") and
Installing package(s) into ‘/home/rs/R/i486-pc-linux-gnu-library/2.13’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘X11’ is not available (for R version 2.13.1)
... was stuck!.
Is it possible to have RandForestGUI in "R version 2.13.1 (2011-07-08)"?
Many thanks, Roberto Scotti
Couple of rerequisites:
Use an R binary from the CRAN Ubuntu repository.
Do sudo apt-get install r-base-dev to complement your R environment for local package installation if you haven't already done so.
Then do sudo apt-get install r-cran-rgl as that is the hardest one to OpenGL headers.
Now try again with the RForestGUI package and its other dependants, and analyse the errors package by package.
The error indicates that you don't have the relevant X11 headers package for your OS. This is not an R package. You need to install that using whatever tools Ubuntu provides (as it is a Debian off-shoot, apt get should work, but there may be other, preferred techniques for adding packages to your OS.
The R Installation and Administration manual suggests that, for Debian, the relevant OS package needed is xorg-dev. Try installing that using your package manager in Ubuntu, and retry to install rgl inside R.
#Dirk Eddelbuettel will no doubt comment that there are pre-built packages in Ubuntu for many of R's packages or at least a meta-package for R Development that will make sure you have all the header packages for your OS available so you can build R packages at install time. I don't use Ubuntu or Debian so I cannot help with this aspect of your Q.
Had a similar problem for the clusterSim package in OS X.
Found the solution on the rstudio board:
X11 isn't installed by default on newer versions of OS X, so I had to install Quartz (the osx distribution of X11)

Resources