Issue installing R in sample app 607 — Oracle Analytics

Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Issue installing R in sample app 607

Received Response
21
Views
4
Comments
SPowell42
SPowell42 Rank 5 - Community Champion

Hi,I'm trying to get R installed in sample app 607. Per the instructions, I've edited the proxy.txt file and set "proxy=" with nothing after it. After that, I begin running the install_sample_R_packages.sh

However, after about 20 minutes it fails with the following. Any ideas on how to proceed from here?

Thx,

Scott

> args<- commandArgs(TRUE)
> proxyType=paste(args[1])
> proxy=paste(args[2])
>
> if(is.na(proxy)|| proxy=="NA"){
+  proxy<-read.table("proxy.txt", header=FALSE, sep="=", stringsAsFactors=FALSE)[,2]
+  if(proxy != "http://[proxy-host:proxy-port]"){
+   print("### Using proxy defined in proxy.txt ###")
+   Sys.setenv(http_proxy=proxy) 
+  }else{
+   print("### Proxy is not defined in proxy.txt, ignoring the same ###")
+  }
+ }else{
+   print("### Using proxy provided in command line ###")
+   print(paste("ProxyType", proxyType, sep="="))
+   print(paste("Proxy", proxy, sep="="))
+  
+   if(proxyType == "https"){
+    Sys.setenv(https_proxy=paste("https://",proxy,sep=""))
+   }
+  
+   if(proxyType == "http"){
+    Sys.setenv(http_proxy=paste("http://",proxy,sep=""))
+   }
+ }
Error in if (proxy != "http://[proxy-host:proxy-port]") { :
  missing value where TRUE/FALSE needed
Execution halted
Error in library(RCurl) : there is no package called ‘RCurl’
Calls: installpackagecustom -> library
Execution halted

Press any key to continue

Answers

  • Hi Scott,

    Apparently they have few issues in these scripts...

    Looks like they used different values for the "no proxy" case (leave it empty, use NA etc.).

    If you want to get rid of the error go to /app/oracle/biee/bi/bifoundation/advanced_analytics/RInstaller and edit these 2 files :

    r-package-install.R

    r-package-install-linux.R

    (I imagine only the "-linux" one is used but I didn't checked more than that.

    You can comment the part about the proxy generating the error.

    But there are other errors coming later with wrong URL to download packages.

    Will try to have a better look at all that to see if I can maybe find you a full "fix" for that and will also report it to the guys developing the SampleApp so they can fix.

  • SPowell42
    SPowell42 Rank 5 - Community Champion

    Thanks Gianni, I appreciate the help. I'll give this a try and see if I get anywhere.

    Thanks,

    Scott

  • SPowell42
    SPowell42 Rank 5 - Community Champion

    Well, what I ended up doing (no clue if it was correct or not) was to make a copy of r-package-install-linux.R called "scott.R". I then edited out the entire section about proxy stuff, just leaving the function installpackagecustom and all of the lines below that. Then from the command prompt I ran:

    Rscript scott.R

    This seemed to install all of the packages...but I don't know anything about either R or linux scripts...so who knows...

    Thx,

    Scott

  • I sent an email to the guys in charge of SampleApp pointing them to this thread, not heard from them (OOW16 is just around the corner, so they are busy on other things I guess). But what you did is actually what was crossing my mind as well ...