Hi Rishika,
Unfortunately, you've hit a bug with that script since it tries to automatically install the pmml package. In that sample script, there's this code segment:
Other workarounds include:
1) Use the R Console to manually install any package dependencies on the Intelligence Server machine (or Desktop Client for derived metrics in 3-tier or if your running 2-tier),
2) Specify a default CRAN Mirror in the .RProfile file on that machine using this code "options(repos = c(CRAN = "http://cran.rstudio.com"))" , or
3) if you're not interested in the PMML, simply comment out or remove the code associated with it from the script.
Finally, be sure to restart your Intelligence Server to eliminate all sides effects of the hang.
Sorry for your troubles. This will be fixed in the next release which we're working to get out later this month. Please reply back on whether this solves your problem.
Thanks,
Rick
Unfortunately, you've hit a bug with that script since it tries to automatically install the pmml package. In that sample script, there's this code segment:
if(is.na(match("pmml", installed.packages()))) { #package installed?
install.packages("pmml") # install package
}
library(pmml) #Load pmml package
If the the pmml package is not installed, the script tries to load it with install.packages. The bug is that, if you don't have a default CRAN Mirror specified, R will popup a window on the machine prompting you to select a CRAN Mirror. Unfortunately, since that window pops up on the server and not your Web client, I suspect your script is hung waiting for a CRAN Mirror to be selected since there's no one to notice/respond the pop-up window on the server. The fix to this bug is a change to the script replacing the install.packages code with this one: if(is.na(match("pmml", installed.packages()))) { #package installed?
install.packages("pmml", repos="http://cran.rstudio.com")) # install package
}
library(pmml) #Load pmml package
I recommend using the RStudio mirror because it automatically re-directs (for details, see http://blog.rstudio.org/2013/06/10/rstudio-cran-mirror).Other workarounds include:
1) Use the R Console to manually install any package dependencies on the Intelligence Server machine (or Desktop Client for derived metrics in 3-tier or if your running 2-tier),
2) Specify a default CRAN Mirror in the .RProfile file on that machine using this code "options(repos = c(CRAN = "http://cran.rstudio.com"))" , or
3) if you're not interested in the PMML, simply comment out or remove the code associated with it from the script.
Finally, be sure to restart your Intelligence Server to eliminate all sides effects of the hang.
Sorry for your troubles. This will be fixed in the next release which we're working to get out later this month. Please reply back on whether this solves your problem.
Thanks,
Rick