You can try to add some `setwd()` calls at the beginning of each step
that calls some R command.

This is not great of course, much of the GitHub-R tooling just assumes
that a repo contains a single package, at the root of the repo.
Converting your repos to this structure is painful, but can be still
better in the long run.

Gabor

On Thu, Dec 24, 2020 at 12:46 AM Ben Bolker <bbol...@gmail.com> wrote:
>
>    Hi folks,
>
>    Attempting to transition a package (glmmTMB/glmmTMB on GitHub) from
> Travis-CI to GIthub Actions.
>
>    Setting this up with usethis::use_github_actions() seems fairly
> straightforward, ... but ... this project has the R package living, not
> in the root directory of the repository, but in the 'glmmTMB'
> subdirectory.  In principle, "all" I have to do is add
> "working-directory: ./glmmTMB" in the right place in the
> .github/workflows/R-CMD-check.yaml file, but I don't seem to have
> succeeded so far. The results have either been very rapid failure due to
> syntax errors (https://github.com/glmmTMB/glmmTMB/actions), *or*
> apparently nothing (browsing around, it seems as though one doesn't
> generally see GH actions results until the run is completed?)
>
>     Does anyone have suggestions (or, ideally, an example of a package
> with this repository configuration with a working GH actions setup)?
>
> Recent attempts: https://github.com/glmmTMB/glmmTMB/commits/github_actions
>
> Most recent attempt:
> https://github.com/glmmTMB/glmmTMB/commit/d1a08058636df0a4835f897d1e43909510f9c652
>
>      happy holidays to all ...
>
>       Ben Bolker
>
> ______________________________________________
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to