rstudio - Unable to access bucket storage files from R Studio -


i have installed r-studio on google cloud platform compute instance. default working directory on r-studio is:

/home/rstudio

then mounted cloud storage bucket on compute instance. mounted image path is:

/mnt/gcs-bucket

but when try read files located in directory on r studio using:

r<-read.csv("/mnt/gcs-bucket/trains.csv") 

i following error

error in file(file, "rt") : cannot open connection in addition: warning message: in file(file, "rt") :   cannot open file '/mnt/gcs-bucket/trains.csv': permission denied 

how can give permissions on files accessible r-studio. have tried:

chmod 777 /mnt/gcs-bucket/trains.csv 

but still same error.

reading file on r works fine. in r-studio unable change working directory:

setwd("/mnt/gcs-bucket") error in setwd("/mnt/gcs-bucket") : cannot change working directory 


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -