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
One of my functions check if the README.Rmd is build when it exists. I test my function via a unit test. When I run the unit test interactively if works as expected. When I run devtools::test() it fails with Can't find a 'README.Rmd' or 'inst/README.Rmd' file. (the related line in the devtools code).
I'm puzzled why this should happen as my code only runs build_readme() when the README.Rmd exists.
if (file_test("-f", file.path(x$get_path, "README.Rmd"))) {
status_before <- status(repo)
build_readme(x$get_path, encoding = "UTF-8")
doc_error <- c(
doc_error,
"`README.Rmd` need to be rendered. Run `devtools::build_readme()`"[
!unchanged_repo(repo, status_before)
]
)
}
The text was updated successfully, but these errors were encountered:
This looks like a bug that was introduced in a recent revision, the path argument was not being correctly passed to dir_ls(). It should be fixed now, if you could test your code with the current master branch and confirm it is fixed that would be great.
One of my functions check if the README.Rmd is build when it exists. I test my function via a unit test. When I run the unit test interactively if works as expected. When I run
devtools::test()
it fails withCan't find a 'README.Rmd' or 'inst/README.Rmd' file.
(the related line in the devtools code).I'm puzzled why this should happen as my code only runs
build_readme()
when theREADME.Rmd
exists.The text was updated successfully, but these errors were encountered: