Skip to content

Tag: r

How to copy files to each user’s space in docker

I am writing a docker file to conduct an evaluation of an R package that I have written. The package is installed inside RStudio server. My docker file inherits from FROM rocker/rstudio. I want the docker file to install the everything (which it does) and create 20 users (user1, user2, …, user20) as tes…

Running Nvim-R via PuTTy: setting up r_term_cdm

I would like to run Nvim-R on a remote machine via putty when I try to open a *.R file the remote machine returns an error message: Please set the variable g:R_term_cmd in your vimrc. Read the plugin documentation … According to the documentation, the R_term_cmd should be used in the following manner: I…

Installing swirl on linux mint

I am trying to install swirl in RStudio and it is not working it reads: The downloaded source packages are in ‘/tmp/Rtmp9gKFfm/downloaded_packages’ When I try to load it, it says: Error in library(swirl) : there is no package called ‘swirl’ I am running Linux Mint 18 Cinnamon 64-bit 3.0.7 R version 3.2.3 Answ…

R packages: RCurl and curl packages install failure on Linux

I hope you can help with this issue I have come across whilst installing RCurl and curl packages for R. Answer That looks like that you have different versions of libcurl. One approch could be the following one (for your console): Then you can use ldd libcurl.so to find all dependencies and shared libraries t…

R: cannot install ‘rasclass’ package on Ubuntu 14.04

I am trying to install ‘rasclass’ package on R (version 3.2.3) but somehow the installation always fails. The output is too large to be pasted here, but I found something interested in this question, that might be the key to solve this issue. Shortly: from the terminal I can see I have gcc-4.8 and…

Shell bash script does not run R

I have an R script that I can run with and it successfully returns the results to a.txt. I am attempting to write a new shell script that plan to run daily, and have made the following script, called morning I run this with the following commands I can get this to work sort of, but end up with the

ssh using R system() command

When I try to connect computer A to computer B using ssh and R’s system() command, I get an error: But if I enter the command in quotes into my Linux terminal (ssh root@Bs-ip-address) it works fine (ssh keys are set up for the correct user). How can I connect properly using R’s system() command? O…