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

Allow relative paths in config file #18

Merged

Conversation

joshuaulrich
Copy link
Sponsor Contributor

'workdir' could be a relative path, but 'libdir' could not, because dequeueJobs() calls setwd(cfg$workdir) before running R CMD check and that means the 'libdir' relative path is no longer correct.

Use normalizePath(cfg$libdir) to get the full library directory path before calling setwd(cfg$workdir).

Fixes #17.

'workdir' could be a relative path, but 'libdir' could not, because
`dequeueJobs()` calls `setwd(cfg$workdir)` before running `R CMD check`
and that means the 'libdir' relative path is no longer correct.

Use `normalizePath(cfg$libdir)` to get the full library directory path
before calling `setwd(cfg$workdir)`.

Fixes eddelbuettel#17.
@eddelbuettel
Copy link
Owner

We must be doing something different with the configs -- I never had this issue. I just called enqueueJobs as a 'delta' of the failed or new ones since a previous one (by pointed to a queue db) and launched a few dequeJobs pkg. Works as before, which is good as no harm done :)

@eddelbuettel eddelbuettel merged commit 5c895af into eddelbuettel:master Feb 21, 2023
@joshuaulrich joshuaulrich deleted the 17-relative-paths-in-config branch February 21, 2023 18:37
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

Successfully merging this pull request may close these issues.

Allow relative paths in .prrd.yaml
2 participants