setup-r-dependencies
with working-directory
fails when renv is present
#768
Labels
bug
an unexpected problem or unintended behavior
Describe the bug
Context: GitHub repo with an R package in a subdirectory with an associated
renv
environment, example: https://github.com/milanmlft/test-r-lib-actionsWhen setting
working-directory
forsetup-r-dependencies@v2
to run the GHA workflow in the package subdirectory, I get the errorduring
Dependency resolution
.I think this is happening because
pak
gets installed before the renv environment in the subdirectory gets activated. Hencepak
is not present in the renv library and so is not found.To Reproduce
Full logs: https://github.com/milanmlft/test-r-lib-actions/actions/runs/6562363561/job/17824139556
Expected behavior
pak
should be installed in the renv library of the subdirectory.The text was updated successfully, but these errors were encountered: