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