Hi I'm using Rstudio and put following .Rprofile file within project folder:
library('ProjectTemplate')
setwd("SOME FOLDER PATH")
load.project()
But when I open an Rstudio project I got following error:
Loading project configuration
Error in translate.dcf(config.path) : could not find function "setNames"
At this moment if I write load.project(), the project loads without any problem.
If I already use "Packrat" in my project and I have following .Rprofile file within project folder:
source("packrat/init.R")
library('ProjectTemplate')
setwd("SOME FOLDER PATH")
load.project()
The project loads without any problem.
Here is my session info that gives the error above:
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ProjectTemplate_0.6
loaded via a namespace (and not attached):
[1] packrat_0.4.1-1 tools_3.1.1
I don't know the problem is related to ProjectTemplate, but any insight will be welcome.