You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I pass a filename or relative path, I expect the report to write to my working directory (or relative to my working directory).
Current Behavior
If you pass something other than an absolute path, it writes to the directory where the template report comes from (inst during dev, the root of the installed package for users). This behavior is inherited from rmarkdown::render().
Possible Solution
Use {rprojroot} to put it relative to the project, or perhaps fs::path_abs() to do it relative to the working directly (not taking a project into account). The here::here() docs recommend NOT using it in functions.
Steps to Reproduce
Context (Environment)
Possible Implementation
Additional Comments
The text was updated successfully, but these errors were encountered:
Expected Behavior
If I pass a filename or relative path, I expect the report to write to my working directory (or relative to my working directory).
Current Behavior
If you pass something other than an absolute path, it writes to the directory where the template report comes from (
inst
during dev, the root of the installed package for users). This behavior is inherited fromrmarkdown::render()
.Possible Solution
Use {rprojroot} to put it relative to the project, or perhaps
fs::path_abs()
to do it relative to the working directly (not taking a project into account). Thehere::here()
docs recommend NOT using it in functions.Steps to Reproduce
Context (Environment)
Possible Implementation
Additional Comments
The text was updated successfully, but these errors were encountered: