rstudio-server

Read CSV file from Azure Blob storage in Rstudio Server with spark_read_csv()

☆樱花仙子☆ 提交于 2020-04-30 12:28:48
问题 I have provisioned an Azure HDInsight cluster type ML Services (R Server), operating system Linux, version ML Services 9.3 on Spark 2.2 with Java 8 HDI 3.6. Within Rstudio Server I am trying to read in a csv file from my blob storage. Sys.setenv(SPARK_HOME="/usr/hdp/current/spark-client") Sys.setenv(YARN_CONF_DIR="/etc/hadoop/conf") Sys.setenv(HADOOP_CONF_DIR="/etc/hadoop/conf") Sys.setenv(SPARK_CONF_DIR="/etc/spark/conf") options(rsparkling.sparklingwater.version = "2.2.28") library(sparklyr

RStudio proxied authetication

有些话、适合烂在心里 提交于 2020-03-25 18:59:26
问题 I've setup proxied authentication for RStudio Server. RStudio Server is redirecting to a middleware implemented using Express JS The middleware creates a request to the authentication server and then parses the response from it. Then the middleware adds the X-RStudio-Username header to the response, which is a re-direction to the RStudio. However, the header is added to the response from the middleware, and then the browser doesn't keep it when it redirects to RStudio Server Since the browser

RStudio proxied authetication

℡╲_俬逩灬. 提交于 2020-03-25 18:58:48
问题 I've setup proxied authentication for RStudio Server. RStudio Server is redirecting to a middleware implemented using Express JS The middleware creates a request to the authentication server and then parses the response from it. Then the middleware adds the X-RStudio-Username header to the response, which is a re-direction to the RStudio. However, the header is added to the response from the middleware, and then the browser doesn't keep it when it redirects to RStudio Server Since the browser

Launch separate RStudio session on a different port?

眉间皱痕 提交于 2020-03-21 07:00:06
问题 I have a RStudio server running on port, say, 8787, which is then accessible by a web browser. The problem is, if my colleague wants to use RStudio, I'll be disconnected as only one user can use the RStudio. I'm looking for how can we launch another instance of RStudio session on a separate port number, say, 8989. This should allow at least 2 different users to run 2 separate RStudio sessions on the same server. To be clear, I'm on RStudio server free version. I'm not sure whether features

Is there an R command to trigger the download of a file from Rstudio Server?

╄→гoц情女王★ 提交于 2020-02-21 03:14:51
问题 When working with Rstudio Server, it is very easy to download a file from the server with File>More>Export... The web browser will automatically start downloading. Is there a way to generate this download with an R command ? 回答1: Does browseURL do it for you: browseURL package:utils R Documentation Load URL into a WWW Browser Description: Load a given URL into a WWW browser. Usage: browseURL(url, browser = getOption("browser"), encodeIfNeeded = FALSE) That should fire it up in a browser. To

Is there an R command to trigger the download of a file from Rstudio Server?

混江龙づ霸主 提交于 2020-02-21 03:14:51
问题 When working with Rstudio Server, it is very easy to download a file from the server with File>More>Export... The web browser will automatically start downloading. Is there a way to generate this download with an R command ? 回答1: Does browseURL do it for you: browseURL package:utils R Documentation Load URL into a WWW Browser Description: Load a given URL into a WWW browser. Usage: browseURL(url, browser = getOption("browser"), encodeIfNeeded = FALSE) That should fire it up in a browser. To

Code using RcppArmadillo compiles when running R from terminal but not rstudio-server

只愿长相守 提交于 2020-01-17 04:43:47
问题 I'm trying to get some c++ code to compile using sourceCpp and RcppArmadillo. I'm using R 3.3.3 on Ubuntu, Rcpp 0.12.10 and RcppArmadillo 0.7.800.2.0. The file, armatest.cpp, is totally stripped down. // [[Rcpp::depends(RcppArmadillo)]] #include <RcppArmadillo.h> using namespace arma; using namespace Rcpp; int one() { return 1; } When I attempt to compile this from within Rstudio server, I get the following compilation error: > Rcpp::sourceCpp("armatest.cpp", verbose = TRUE, rebuild=TRUE)

install.packages() Rstudio server AWS ubuntu error

限于喜欢 提交于 2020-01-16 04:02:10
问题 I have an AWS instance running ubuntu 12.04 and shiny server as well as Rstudio, however, when I try to add packages, I get an error when trying to load the library() for the following command: install.packages("jsonlite", dependencies = TRUE, repos="http://cran.cs.wwu.edu") terminal output shows the download happens without any issues with the following as the last line The downloaded source packages are in ‘/tmp/RtmpO02nLU/downloaded_packages’ Clearly library() shows an error eg// Error in

Setting up a Kuberentes cluster with HTTP Load balancing ingress for RStudio and Shiny results in error pages

一笑奈何 提交于 2020-01-01 05:41:09
问题 I'm attempting to create a cluster on Google Kubernetes Engine that runs nginx, RStudio server and two Shiny apps, following and adapting this guide. I have 4 workloads that are all green in the UI, deployed via: kubectl run nginx --image=nginx --port=80 kubectl run rstudio --image gcr.io/gcer-public/persistent-rstudio:latest --port 8787 kubectl run shiny1 --image gcr.io/gcer-public/shiny-googleauthrdemo:latest --port 3838 kubectl run shiny5 --image=flaviobarros/shiny-wordcloud --port=80 They

Configuring RStudio Server service for nginx-ingress in GKE

你离开我真会死。 提交于 2019-12-24 16:26:12
问题 I've a Kubernetes cluster on GKE that has a nginx ingress controller sitting on top to mapping the RStudio Server endpoint under /rstudio/. This works quite well. Unfortunately, one of my deployments (RStudio Server) doensn't work properly because it uses client-side redirects during the login/logout which end ups in 404 error when trying to access /auth-login (it should be /rstudio/auth-login) In the past, when using a non-containerized install of RStudio Server, I used to sit an Apache