jthomasmock / gtExtras

A Collection of Helper Functions for the gt Package.
https://jthomasmock.github.io/gtExtras/
Other
195 stars 27 forks source link

Housekeeping Part 3: ┬─┬ノ(ಠ_ಠノ) #47

Closed ddsjoberg closed 2 years ago

ddsjoberg commented 2 years ago

Hey hey! Oy, another one!

This PR focuses on items needed for CRAN acceptance, e.g. details stipulated in the Writing R Extensions Manual and in https://github.com/DavisVaughan/extrachecks. First submission of a pkg is tricky! But once it's been accepted, subsequent submissions are much easier.

Outstanding task: every exported function needs to be reviewed to ensure it has both an @examples and @return tag.

ddsjoberg commented 2 years ago

I am surprised that the GH Actions is failing due to a failure to install webshot2. I sent the built package to CRAN's check system (results here https://win-builder.r-project.org/4Y0AUy7ovkhG/). The system was able to see that webshot2 to was available in the additional repository, but also didn't appear to install it for the checks. This is something that will need to be looked into further as it results in two errors on the CRAN check system.

¯\_(ツ)_/¯

jthomasmock commented 2 years ago

It did fail on the main branch as well - unsure why and will look into that later tomorrow.

Thanks for the additional review!

jthomasmock commented 2 years ago

OK I've abandoned the idea of webshot2 for now and added a note that it can be used but is up to the user.

Looks like the package is building on Windows/Mac/Linux so the RCmdCheck action is succeeding, but pkgdown/auto-rebuild of docs is still failing due to a package dep issue?

* pkgdown: dependencies must be TRUE, FALSE, NA or a list of dependency types>
   in process [82](https://github.com/jthomasmock/gtExtras/runs/6012119091?check_suite_focus=true#step:5:82)22 
  -->
  <simpleError: Cannot install packages:
  * pkgdown: dependencies must be TRUE, FALSE, NA or a list of dependency types>

   Stack trace:

   12. (function (...)  ...
   13. base:::withCallingHandlers(cli_message = function(msg) { ...
   14. get("lockfile_create_internal", asNamespace("pak"))(...)
   15. prop$stop_for_solution_error()
   16. private$plan$stop_for_solve_error()
   17. pkgdepends:::pkgplan_stop_for_solve_error(self, private)
   18. base:::stop("Cannot install packages:\n", msg, call. = FALSE)
   19. base:::.handleSimpleError(function (e)  ...
   20. h(simpleError(msg, call))
   21. base:::stop(e)
   22. (function (e)  ...

   x Cannot install packages:
  * pkgdown: dependencies must be TRUE, FALSE, NA or a list of dependency types 

  Execution halted

I don't see a specific package mentioned in that error... 😕

Any ideas @ddsjoberg ?

ddsjoberg commented 2 years ago

Hmmm, I am not sure! The error is that pkgdown can't be installed, which is strange for sure.

I checked the yaml against one Shannon and I recently set up in the gtreg package, and I think the only difference is that the setup action in gtExtras is set to v2 while the gtreg one is set to v1. Maybe there is a problem in v2. I would try setting to v1 and rerunning the GH Actions? https://github.com/shannonpileggi/gtreg/blob/main/.github/workflows/pkgdown.yaml

jthomasmock commented 2 years ago

Gotcha, I had a suggestion from @mrcaseb to switch to v2 as it resolved some issues for them. I'll try it for v1 again and see if that helps. Thanks!

mrcaseb commented 2 years ago

Not sure why the installation fails in v2. I guess the package cache needs to be refreshed but if v1 doesn’t make problems it’s probably best to stick with it in the pkgdown action.