Skip to Content
0
Jun 11, 2018 at 07:53 PM

R Integration Issue in SAC

457 Views

Hello, I have an R server setup on AWS and connected to SAC for R integration. all ran fine and I was able to execute example scripts in SAC. However, when I tried to be creative and use a package installed from Github via devtools, I got an error:

Warning in dir.create(www_dir) : cannot create dir ‘(null).1003.1003/viewhtml2286683e12f’, reason ‘No such file or directory’

Error in value[[3L]](cond) : cannot change working directory

The script I’m trying to run is:

library(dplyr)
library(babynames)
library(streamgraph)
library(magrittr)

babynames %>%
  filter(grepl("^Kr", name)) %>%
  group_by(year, name) %>%
  tally(wt=n) %>%
  streamgraph("name", "nn", "year")

I'm wondering whether this is an authorization issue with the R user, or it's an unsupported package in SAC.

Thank you in advance for your help,

MJ