How to install ROracle package on Windows 7? - r

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?

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.

I have a problem to install (psych) package

> install.packages("psych")
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/Ali Basuony/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘mnormt’ is not available
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/psych_1.9.12.31.zip'
Content type 'application/zip' length 3800520 bytes (3.6 MB)
downloaded 3.6 MB
package ‘psych’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Ali Basuony\AppData\Local\Temp\RtmpeYduMH\downloaded_packages
> install.packages(‘mnormt’)
Error: unexpected input in "install.packages(‘"
> install.packages("mnormt")
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/Ali Basuony/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘mnormt’ is not available (for R version 3.6.3)
The problem is described here:
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/
So you have two options:
Install RTools
You need Rtools to build packages from source on Windows. So visit this page:
https://cran.r-project.org/bin/windows/Rtools/history.html
and download appropriate version of Rtools to your R version (it seems to be Rtools35 as you probably have R 3.6.3). Note that it's about 1 GB on your hard drive.
Install binary packages
Or if you don't want to install Rtools, you maybe can try to install binary packages and not bother with building it from source. Then run this:
install.packages("psych", type = "binary", dependencies = TRUE)
install.packages("mnormt", type = "binary", dependencies = TRUE)
The current mnormt package depends on R version 4.0.0 or greater. You need to update R to install it, or install an older version. To install an older version you'll need Rtools.

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 r package for oracle on windows 10 64 bit

while installing rpackage Roracle on windows 10 i'm getting stuck at this point
install.packages("ROracle")
Installing package into ‘C:/Users/admin/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
Package which is only available in source form, and may need compilation of C/C++/Fortran:
‘ROracle’
Do you want to attempt to install these from sources?
y/n: y
installing the source package ‘ROracle’
trying URL 'https://cran.rstudio.com/src/contrib/ROracle_1.3-1.tar.gz'
Content type 'application/x-gzip' length 308252 bytes (301 KB)
downloaded 301 KB
* installing *source* package 'ROracle' ...
** package 'ROracle' successfully unpacked and MD5 sums checked
ERROR: cannot find Oracle Client.
Please set OCI_LIB64 to specify its location.
Warning: running command 'sh ./configure.win' had status 1
ERROR: configuration failed for package 'ROracle'
* removing 'C:/Users/admin/Documents/R/win-library/3.3/ROracle'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\admin\Documents\R\win-library\3.3" C:\Users\admin\AppData\Local\Temp\RtmpGYlz5L/downloaded_packages/ROracle_1.3-1.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\admin\AppData\Local\Temp\RtmpGYlz5L\downloaded_packages’
I've installed Rtools Rtools33.exe and my R version is version.string R version 3.3.2 (2016-10-31)
please help to connect it with oracle 11g database
Oracle client is intalled in d drive which path is:
D:\app\admin\product\11.2.0\client_1\BIN
As #Nathan Dobie mentionned, instructions on the ROracle installation were helpful for me. I didn't need Rtools.exe but i had to add oracle instant client in the Environment variables.
Configuration in 64bits:
Under System variables, create OCI_LIB64 if it does not already exist.
Set the value of OCI_LIB64 to D:\app\admin\product\11.2.0\client_1\BIN (in your case)
Under System variables, edit PATH to include
D:\app\admin\product\11.2.0\client_1\BIN
And you will also need to create OCI_INC with the following value
D:\app\admin\product\11.2.0\client_1\oci\include
Worked very well for me :-)

Installing rsymphony package for r (non-zero exit status)

I am trying to install Rsymphony to be able to install fPortfolio.
I get an error when I try to install it;
install.packages("Rsymphony")
Installing package into ‘C:/Users/Olve/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
Package which is only available in source form, and
may need compilation of C/C++/Fortran: ‘Rsymphony’
Do you want to attempt to install these from sources?
y/n: y
installing the source package ‘Rsymphony’
trying URL 'http://cran.rstudio.com/src/contrib/Rsymphony_0.1-22.tar.gz'
Content type 'application/x-gzip' length 7447 bytes
downloaded 7447 bytes
installing source package 'Rsymphony' ...
** package 'Rsymphony' successfully unpacked and MD5 sums checked
Warning: running command 'sh ./configure.win' had status 127
ERROR: configuration failed for package 'Rsymphony'
removing 'C:/Users/Olve/Documents/R/win-library/3.3/Rsymphony'
restoring previous 'C:/Users/Olve/Documents/R/win-library/3.3/Rsymphony'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\Olve\Documents\R\win-library\3.3" C:\Users\Olve\AppData\Local\Temp\RtmpUjRTsG/downloaded_packages/Rsymphony_0.1-22.tar.gz' had status 1
Warning in install.packages :
installation of package ‘Rsymphony’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Olve\AppData\Local\Temp\RtmpUjRTsG\downloaded_packages’
I use RStudio with R 3.3 and Windows 7 64bit, most of the other posts I have seen related to this is from OSX users getting slightly different error messages, and none of their solutions have helped me (downloading and installing symphony, not sure if i have done this correctly either)
Edit: Stedy's solution worked, thanks.
Since its a Windows 7 machine, you will want to use the zip file instead of the tar file:
> install.packages('Rsymphony')
Installing package into ‘C:/Users/zstednic/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
Package which is only available in source form, and may need compilation of
C/C++/Fortran: ‘Rsymphony’
These will not be installed
> install.packages('Rsymphony_0.1-22.zip', repos=NULL)
Installing package into ‘C:/Users/zstednic/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
package ‘Rsymphony’ successfully unpacked and MD5 sums checked
> library(Rsymphony)
>

Resources