I have a project with the library targets working. But I want to call the function tar_make() from a script on an internal folder of this same project.
My folders are like this:
default2
-> _targets.R
-> _targets/
...
-> scripts/
daily_update.R
-> R/
...
-> .gitignore
-> default2.Rproj
So, I want to call the tar_make() inside daily_update.R, because I'm automating the execution of this entire project.
When I try to run daily_update.R with the Rscript.exe I receive this message:
I already have my _targets.R working and I don't want to move any file from their original folder. How can I fix it?