Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to define the path for the log files #87

Open
hannes101 opened this issue Feb 10, 2022 · 1 comment
Open

Possibility to define the path for the log files #87

hannes101 opened this issue Feb 10, 2022 · 1 comment

Comments

@hannes101
Copy link

Thanks a lot for this package, it really works great. But I would love to have the possibility to define the path, where the log files are written to.
I would like to all put them into a subfolder, so that the folder with the code doesn't get so cluttered, but I couldn't find a way to define this path.

@jwijffels
Copy link
Collaborator

The package does not have this possibility, you would have to add an argument to taskscheduler_create where to put the logs in order to modify this line

task <- sprintf("cmd /c %s %s %s >> %s 2>&1", Rexe, shQuote(rscript), paste(rscript_args, collapse = " "), shQuote(sprintf("%s.log", tools::file_path_sans_ext(rscript))))

Feel free to provide a sensible pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants