[R] Permission denied with tk_choose.dir

Jouanin Celine celine_jouanin at yahoo.fr
Fri Oct 20 14:25:56 CEST 2017


Dear R Help list,
I'm facing a problem with "tk_choose.dir", I try to find an explanation and a solution.

I use :rm(list=ls(all=TRUE))
datawd<-"/mnt/3-Biot/data_input/"
setwd(datawd) files<-tk_choose.files(filters = matrix(c("/*.csv",".csv"),1, 2, byrow = TRUE),caption ="Select file with csv format") 
If I change the name of the folder like this ("data_input" becomes "data") and delete the folder "data_input" and then run :
rm(list=ls(all=TRUE))
datawd<-"/mnt/3-Biot/data/"
setwd(datawd) files<-tk_choose.files(filters = matrix(c("/*.csv",".csv"),1, 2, byrow = TRUE),caption ="Select file with csv format") 
I received this error :"Impossible to acess to the directory "/mnt/3-BioT/data_input" permission denied"
The old path and folder is kept in memory in tk_choose.file.
What can I do ?
Thanks for your help,
Céline






I use R version 3.2.3 on linux-gnu

Céline Jouanin

	[[alternative HTML version deleted]]



More information about the R-help mailing list