lcolladotor / biocthis

Automate package and project setup for Bioconductor packages
https://lcolladotor.github.io/biocthis/
49 stars 16 forks source link

GitHub Actions error: invalid graphics state #7

Closed igordot closed 3 years ago

igordot commented 4 years ago

I am just getting started with GitHub Actions. I have a repo that works fine with Travis and the R-CMD-check workflow from usethis::use_github_actions(). The only modification I made is adding r-lib/actions/setup-tinytex because TeX was required. I also tried biocthis::use_bioc_github_action() and it keeps failing at the "Deploy package" stage with error "invalid graphics state". Any idea why that may be happening? The code is identical to what is in Bioconductor, so it should be valid I assume.

You can see the full log here: https://github.com/igordot/copynumber/runs/880048326

lcolladotor commented 3 years ago

Hi,

I don't know the answer to your question, but it looks like you already resolved this issue. Do you mind posting what was the solution? Thanks

Best, Leo

igordot commented 3 years ago

This was a while back. I think I just ended up skipping building the vignettes, which is not a great solution. See the relevant commit here: https://github.com/igordot/copynumber/commit/0d08b2f427cc601ed45fb5294420c17f15e0ef4d

lcolladotor commented 3 years ago

Hm... maybe this is related https://stackoverflow.com/questions/20155581/persistent-invalid-graphics-state-error-when-using-ggplot2. You might also want to try running pkgdown::deploy_to_branch() locally to see if you get more detailed error information. You could do it on your computer setup or also using the Bioconductor devel docker http://bioconductor.org/help/docker/

docker run \
     -e PASSWORD=bioc \
     -p 8787:8787 \
     bioconductor/bioconductor_docker:devel
lcolladotor commented 3 years ago

I'm closing this issue due to inactivity. If it becomes a priority again, we can re-open it.