Rook apps under Rstuidio server

71 views
Skip to first unread message

Peter K

unread,
Jan 19, 2015, 2:31:02 PM1/19/15
to rr...@googlegroups.com
I was wondering if anyone succeeded in starting Rook under Rstudio server. Just to clarify, Rstudio server is different from the regular Rstudio IDE - it runs as a standalone process, listens to a specified port and one connects to it using a web browser. 

It seems that an R session like that already has the httpd running (i.e. startDynamicHelp(T) throws an error: "server already running"). tools:::httpdPort is the same as the main Rstuido server port. So I am guessing Rstuido server has already started internal httpd and is using it for something.

 Rook picks up on the fact that it’s running in Rstudio, returns some Rhttpd instance (using the Rstudio’s port), but I can’t access any Rook apps under it:

R Custom HTTP Handler Not Found

Unable to locate custom HTTP handler for /custom/adj.sknn.lin2/index.html

Is the package which implements this HTTP handler loaded?


 Glancing at the code, it looks like the constructor gives up if the Rstudio’s running:

   if(grepl('rstudio',base::.Platform$GUI,ignore.case=TRUE)){
         
# RStudio has already set up host and port
         listenPort
<<- tools:::httpdPort
         
if (!missing(port))
            warning
("RStudio has already started the web server on port ",tools:::httpdPort)
         
return(invisible())
     
}

 I was wondering if anyone has figured out a way to launch Rook under Rstudio server environment.

Thanks,

-peter.


> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C         LC_TIME=C            LC_COLLATE=C         LC_MONETARY=C        LC_MESSAGES=C        LC_PAPER=C           LC_NAME=C            LC_ADDRESS=C         LC_TELEPHONE=C       LC_MEASUREMENT=C     LC_IDENTIFICATION=C 

attached base packages:
 [1] grid      tools     parallel  stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] colorspace_1.2-4          extRemes_2.0-1            car_2.0-20                distillery_1.0-1          Lmoments_1.1-5            WGCNA_1.41-1              flashClust_1.01-2         dynamicTreeCut_1.62       cba_0.2-14                proxy_0.4-12              RMTstat_0.3               XML_3.98-1.1              fastcluster_1.1.13        RcppArmadillo_0.4.300.8.0 pscl_1.4.6                MASS_7.3-34               RColorBrewer_1.0-5        caTools_1.17              rgenoud_5.7-12            bioDist_1.36.0            KernSmooth_2.23-12        inline_0.3.13             sva_3.10.0                mgcv_1.7-29               nlme_3.1-117              corpcor_1.6.6             pcaMethods_1.54.0         Rcpp_0.11.2               Biobase_2.24.0            BiocGenerics_0.10.0       Cairo_1.5-5               rjson_0.2.14              Rook_1.0-9                brew_1.0-6                scde_1.3.0                flexmix_2.3-11            lattice_0.20-29          

loaded via a namespace (and not attached):
 [1] Formula_1.1-1       Hmisc_3.14-4        Matrix_1.1-4        R.methodsS3_1.6.1   SparseM_1.03        bitops_1.0-6        cluster_1.15.3      codetools_0.2-8     doParallel_1.0.8    edgeR_3.6.2         foreach_1.4.2       impute_1.38.1       iterators_1.0.7     latticeExtra_0.6-26 limma_3.20.6        matrixStats_0.10.0  modeltools_0.2-21   nnet_7.3-8          plyr_1.8.1          quantreg_5.05       reshape_0.8.5       splines_3.1.1       stats4_3.1.1        survival_2.37-7    

 
Reply all
Reply to author
Forward
0 new messages