rstudio-server

Fresh new session for rstudio-server

被刻印的时光 ゝ 提交于 2019-12-03 06:42:22
问题 I am running rstudio-server on a virtualised (vmware-player) ubuntu machine, and processing lots of data into the ram. I find that after some inactivity that the session suspends the data. The problem is that it takes a VERY long time to resume this session and it is making both the host machine and virtual machine lag very badly. I just want to kill the session and start a new fresh session of rstudio-server, but so far the only way I have found which does this is to reisub my ubuntu machine

Enter passwords interactively in R or R Studio (Server)?

自作多情 提交于 2019-12-03 04:25:36
问题 Is there a way in R to enter passwords interactively to the command line and hide them from the screen? I know there's readLine , but I do not know passwords can be hidden there. Assume you want to connect to a database using ROracle or RMySQL and do not want to store the password in a script but rather make the user enter it every time a query is executed. Yes, we had a similar question around here, but I feel that the situation has changed and it's worth to address to problem again.

Install R Studio Server on Windows

妖精的绣舞 提交于 2019-12-03 02:26:57
Is it possible to install RStudio Server on a Windows machine? I know that it is possible if I use AMI, but how could I install it without AMI? I've read at http://www.r-bloggers.com/rstudio-server-part-2-pros-of-using-rstudio-server-for-a-remote-connection/ that: "This is mainly a problem under Windows, where you need to install Cygwin to get the X server running (assuming using putty for the ssh connection). Although it works, I don’t really like installing a lot of additional software just to get a remote connection with graphic support." But I dont get it... Any ideas? Install Virtual Box

Need the filename of the Rnw when knitr runs in rStudio

送分小仙女□ 提交于 2019-12-01 17:38:17
When working on a reproducible research project, I would like to know the name of the Rnw file that is being run to use as an R variable. This would be analogous to inserting an MSExcel filename in a footer I am using RStudio Server on Ubuntu. Thank you. You can use the following two idioms to fetch the directory and name of the current file in knitr : knitr:::.knitEnv$input.dir knitr:::knit_concord$get("infile") This is independent of RStudio, the knitr package is entirely responsible for this. These are private functions and variables that can change at any time without notice, so if you

AWS Linux Server install R package

不打扰是莪最后的温柔 提交于 2019-12-01 16:44:23
I try to install the package "data.table" (and "aws.s3)" via Rstudio Server on an Amazon Linux instance following this guide: http://stanke.co/category/r/ Unfortunately, I get the following error message. I really don't know what else to do. Can anybody help? I installed devtools and I am able to install other packages such as xml2, devtools and deplyr. I had the same issue on AWS and already fixed. You need first install gcc64 and openmp shared support library. sudo yum install gcc64 sudo yum install libgomp Then under your user home create an .R folder with a Makevars file in it, with the

AWS Linux Server install R package

只愿长相守 提交于 2019-12-01 16:03:49
问题 I try to install the package "data.table" (and "aws.s3)" via Rstudio Server on an Amazon Linux instance following this guide: http://stanke.co/category/r/ Unfortunately, I get the following error message. I really don't know what else to do. Can anybody help? I installed devtools and I am able to install other packages such as xml2, devtools and deplyr. 回答1: I had the same issue on AWS and already fixed. You need first install gcc64 and openmp shared support library. sudo yum install gcc64

ROAuth no longer used in favor of httr? [Twitter API]

独自空忆成欢 提交于 2019-12-01 04:15:21
I'm running R Studio on an AWS "Ubuntu Server 12.04.2 LTS" and accessing R Studio via my browser. When I try to authenticate at the Twitter API using the package ROAuth with the code: credential<-OAuthFactory$new(consumerKey="xxxxx", consumerSecret="xxxxx", requestURL="https://api.twitter.com/oauth/request_token", accessURL="https://api.twitter.com/oauth/access_token", authURL="https://api.twitter.com/oauth/authorize") credential$handshake() registerTwitterOAuth(credential) I get an error after registerTwitterOAuth(credential) saying Error in registerTwitterOAuth(credential) : ROAuth is no

ROAuth no longer used in favor of httr? [Twitter API]

ε祈祈猫儿з 提交于 2019-12-01 00:30:39
问题 I'm running R Studio on an AWS "Ubuntu Server 12.04.2 LTS" and accessing R Studio via my browser. When I try to authenticate at the Twitter API using the package ROAuth with the code: credential<-OAuthFactory$new(consumerKey="xxxxx", consumerSecret="xxxxx", requestURL="https://api.twitter.com/oauth/request_token", accessURL="https://api.twitter.com/oauth/access_token", authURL="https://api.twitter.com/oauth/authorize") credential$handshake() registerTwitterOAuth(credential) I get an error

unable to start rstudio in centos getting error “unable to connect to service”

我与影子孤独终老i 提交于 2019-11-30 05:20:00
I have Rstudio server installed on CentOS 6, but I cannot login to Rstudio from the browser at http://localhost:8787 in browser. A popup titled "RStudio Initialization Error" appears with message "Unable to connect to service". I have tried the following to remedy the error, but I have been without success: $ sudo rstudio-server verify-installation rstudio-server stop/waiting rserver[19273]: ERROR system error 13 (Permission denied) [username=rstudio-server]; OCCURRED AT: core::Error server::launchSession(const std::string&, const core::system::Options&, PidType*) /root/rstudio/src/cpp/server

ROracle not working in R studio

谁说我不能喝 提交于 2019-11-29 07:53:21
I'm trying to install ROracle package on a unix box. The package gets installed properly. But library(ROracle) does not work fine with the error library(ROracle) Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/u01/group1/home/oracle/R/x86_64-redhat-linux-gnu-library/3.1/ROracle/libs/ROracle.so': libclntsh.so.11.1: cannot open shared object file: No such file or directory Error: package or namespace load failed for ‘ROracle’ The package installs fine from the command line , but just does not work in R studio. I went through lot of threads in forum and lot of