cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Custom R component

Former Member
0 Kudos

Hi

I am using Caret package inside RStudio-0.99.441 to construct a custom R algorithm for my usecase. Now I am trying to install this caret package to

R x64 3.1.0 GUI to which my SAP Expert Analytics is Configured. So whenever I am trying to install the CARET package in my R GUI an error comes as given below:

> install.packages('caret', dependencies = TRUE)

Warning: unable to access index for repository http://ftp.iitm.ac.in/cran/bin/windows/contrib/3.1

Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.1

Warning message:

package ‘caret’ is not available (for R version 3.1.0)

As a result inside SAP expert analytics the custom R component doesn't work. So is there a way out for such problem. May be we can configure the SAP Expert analytics with R studio library???

Accepted Solutions (1)

Accepted Solutions (1)

achab
Product and Topic Expert
Product and Topic Expert
0 Kudos

what is the version of PA you are using? is it 2.2?

Thx

Antoine

Former Member
0 Kudos

Version is 2.1

AndreasForster
Product and Topic Expert
Product and Topic Expert
0 Kudos

hi,

if expert mode and rstudio are using the same r-installation, then you can install the library in rstudio and expert mode should pick it up. That's how i prefer it. This might fix it.

alternatively, could it be that you have a proxy in your network, which prevents the install directly in rgui? Then either try from a network without proxy or use a command like

setInternet(true)

before installing the library. I am not 100% about the command syntax, i am travelling at the moment without laptop.

Andreas

Former Member
0 Kudos

Yes expert mode and R studio are using the same r-installation version, but for some reason in R GUI it is not finding the Caret library but in R Studio there is no such issue. How can I configure the Expert mode with R Studio?

AndreasForster
Product and Topic Expert
Product and Topic Expert
0 Kudos

I see same on my computer in case, setInternet2(TRUE) was not set. Executing this command, allows me to install libraries directly in Rgui. Please try this out, if you want to install packages in Rgui

setInternet2(TRUE)
install.packages('caret', dependencies = TRUE)

Can you explain why you want to install in Rgui by the way? If the library is installed through RStudio it should be available in Rgui directly too, and in Expert mode.

Have you been able to create a simple new custom r component? This site gives an overview on adding new components

http://scn.sap.com/docs/DOC-62119

Former Member
0 Kudos

Thanks Andreas,

setInternet2(TRUE)
install.packages('caret', dependencies = TRUE)

worked beautifully.

I also found that expert mode and rstudio were using different r-installation. I corrected it now but thanks for such prompt response

Answers (0)