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

Normalize path for render_root in yml to fix relative paths #150

Merged
merged 1 commit into from May 7, 2024

Conversation

slager
Copy link
Contributor

@slager slager commented May 7, 2024

Fixed an issue found by @jmtaylor-fhcrc during interactive testing where rmarkdown::render() fails when render_root is given as ./ in yml config.

Basically, render_root path needs to be normalized before passing to rmarkdown::render().

This originally happened but got broken by commit 519fadb.

Fixed the regression and added new tests for the behavior expected by Jason's reprex.

Internal function .validate_render_root() has been changed to return the normalized render_root path if the path is valid or throw an error if it's invalid. The old behavior was to catch the error and return TRUE or FALSE.

@slager slager changed the title normalize path for render_root in yml to fix rel path situations Normalize path for render_root in yml to fix relative paths May 7, 2024
@slager slager merged commit 3621409 into develop May 7, 2024
7 checks passed
@slager slager deleted the fix_render_root branch May 7, 2024 01:19
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.

None yet

1 participant