HowTo install RSAP ================== You must download and install the SAP NW RFC SDK first. This can be obtained from the SAP service portal http://service.sap.com/swdc -> Download -> Support Packages and Patches -> Entry by Application Group -> Additional Components -> SAP NW RFC SDK [on to your particular version and OS flavour] Please insure that YAML and reshape are installed: install.packages(c('yaml', 'reshape')) The RSAP package can be found at http://cran.r-project.org/web/packages/RSAP/index.html The easiest way to install RSAP is to clone the repository and use R CMD INSTALL You must ensure that you have the NW RFC SDK installed which is available through downloads on the SAP Service Market Place First Option: From my own repository - in R: For UNIX like OSes: install.packages('RSAP', repos=c('http://piersharding.com/R'), configure.args=c('--with-nwrfcsdk-include=/home/piers/code/sap/nwrfcsdk/include --with-nwrfcsdk-lib=/home/piers/code/sap/nwrfcsdk/lib')) The args= value passed in must correspond to the correct location for your setup for the INCLUDE and LIB paths to the NW RFC SDK you have installed from SAP. For Windows: * You must have downloaded and unpacked the SAP NW RFC SDK into C:/nwrfcsdk * Download RTools (http://cran.r-project.org/bin/windows/Rtools/) for your R installation version * Then run: install.packages('RSAP', repos=c('http://piersharding.com/R'), type="source") Using devtools, you can directly install the package from GitHub. From R: install.packages('devtools') library(devtools) install_github('RSAP', username='piersharding', args=c("--configure-args='--with-nwrfcsdk-include=/home/piers/code/sap/nwrfcsdk/include --with-nwrfcsdk-lib=/home/piers/code/sap/nwrfcsdk/lib'")) The args= value passed in must correspond to the correct location for your setup for the INCLUDE and LIB paths to the NW RFC SDK you have installed from SAP. You must ensure that all your installed packages (especially httr, and stringr) are up to date. The easiest way to do this is to start R and: update.packages() Second Option: Set the environment variables that locate the INCLUDE and LIB directories: export NWRFCSDK_INCLUDE=/home/piers/code/sap/nwrfcsdk/include export NWRFCSDK_LIBS=/home/piers/code/sap/nwrfcsdk/lib Download the package from GitHub - either: git clone git@github.com:piersharding/RSAP.git or: retrieve and unpack https://github.com/piersharding/RSAP/archive/master.zip Then run the build and install command from the package root directory: R CMD INSTALL --build --preclean --clean . This has been tested under Ubuntu 12.04 - how it builds on other platforms is unknown. The generic compile instructions from SAP for building with the NW RFC SDK can be found here http://www.stechno.net/sap-notes.html?view=sapnote&id=1056696 (OSS Note 1056696). Additional Windows build help ============================= Thanks to Alvaro for making this work. This was last used for R-2.15.0 under 64bit architecture. Download RTools (http://cran.r-project.org/bin/windows/Rtools/) for your R installation version Make sure that you're using the right R for the NWRFCSDK folder...R 64bit for NWRFCSDK 64bit. You can check this if you go to Environment Variables --> Path and look for something like this C:\Program Files\R\R-2.15.0\bin\x64 (x32 or x64)