Steps to reproduce:
- Open RStudio. Ensure you are NOT in an RStudio project.
- Run
install.packages("ProjectTemplate") in the console.
- Create a new script "letters_script.R" within the directory "C:/Users/your/working/directory/letters"
- Insert the following code into the script, save and run:
library("ProjectTemplate")
create.project(
project.name = "C:/Users/your/working/directory/letters",
rstudio.project = TRUE,
merge.strategy = "allow.non.conflict"
)
- The console returns:
#> Error in file(con, "w") : cannot open the connection
#> In addition: Warning message:
#> In file(con, "w") :
#> cannot open file
#>'C:/Users/your/working/directory/letters/C:/Users/your/working/directory/letters.Rproj': Invalid argument
Viewing the directory in File Explorer shows folders have been created: cache, config, data e.t.c. , and the "letters_script.R" is still there. The problem is the .Rproj file isn't created and from the error message, the function duplicates the "project.name" argument and concatenates onto itself when generating the file path for the .Rproj file. A fix for this would be much appreciated, thank you.
Steps to reproduce:
install.packages("ProjectTemplate")in the console.Viewing the directory in File Explorer shows folders have been created: cache, config, data e.t.c. , and the "letters_script.R" is still there. The problem is the .Rproj file isn't created and from the error message, the function duplicates the "project.name" argument and concatenates onto itself when generating the file path for the .Rproj file. A fix for this would be much appreciated, thank you.