Github Actions setup-r-dependencies fails with Remote dependency in subdirectory

Hi all,

I am trying to add test coverage to my R package on GitHub Actions and I'm using the r-lib test-coverage workflow template. The workflow gives an error in the "setup-r-dependencies@v2" step:

Packaging gets 0.35
Error: Error: <callr_remote_error: No root directory found in /tmp/RtmpwjfbKQ/X/gets or its parent directories. Root criterion: contains a file "DESCRIPTION">

So this error apparently occurs when packaging gets (another R package that I need). The package is in a subdirectory of a GitHub repository, which is why my DESCRIPTION file specifies

Remotes: gsucarrat/gets/gets@fix

The workflow does indeed download the correct branch because it refers to the correct git ref:

  • gets 0.35 [bld][cmp][dl] (GitHub: 61d7b31)

Did I specify the subdirectory incorrectly? The package is located in "gets" within the repo "gets". If I run install_github(repo = "gsucarrat/gets/gets@fix") on my computer, it does install the correct version and there is no problem building the package.

If you think this is a bug, you can open an issue. Don't forget to link to a build log.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.