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
I ran into problems when trying to knit a Readme.Rmd-File localized in folder inst/
This seems to be caused by the function build_readme computing the variable readme_path not relative to path, but only uses the filename part, resulting in "Readme.Rmd" instead of "inst/Readme.Rmd".
Using package fs, this could probably solved by changing the code to readme_path <- path_rel(dir_ls(dirs, regexp = "readme[.]rmd", ignore.case = TRUE), start = path)
Separately (and unrelated), if readme.Rmd is located in inst/, should Readme.Rmd be rendered to the package home directory as Readme.md, e.g. by setting output_dir = path in the call to build_rmd via ... as default?
The text was updated successfully, but these errors were encountered:
First of all, thanks for the great package.
I ran into problems when trying to knit a Readme.Rmd-File localized in folder
inst/
This seems to be caused by the function
build_readme
computing the variablereadme_path
not relative topath
, but only uses the filename part, resulting in "Readme.Rmd" instead of "inst/Readme.Rmd".Using package
fs
, this could probably solved by changing the code toreadme_path <- path_rel(dir_ls(dirs, regexp = "readme[.]rmd", ignore.case = TRUE), start = path)
Separately (and unrelated), if readme.Rmd is located in inst/, should Readme.Rmd be rendered to the package home directory as Readme.md, e.g. by setting
output_dir = path
in the call tobuild_rmd
via...
as default?The text was updated successfully, but these errors were encountered: