I'm new to using GitHub actions to do checks in the background.
himach checks out ok locally, and also if I use devtools::check_win_release()
, for example.
But using the off-the-peg check-standard.yaml
(here in the himach GitHub) for checks on GitHub there's a problem when checking the vignettes that objects defined in himach
don't seem to be available, so that I get errors such as "object 'mach_kph' not found" where the vignette has in-line code r mach_kph
. The object certainly exists, and the in-line code comes after the library(himach)
call.
Baffled, so any pointers welcome.
(In case you can't see the logs without logging in, here are the errors in lines 37 & 42:
-- R CMD build -----------------------------------------------------------------
28pdflatex not found! Not building PDF manual.
29* checking for file 'D:\a\himach\himach/DESCRIPTION' ... OK
30* preparing 'himach':
31* checking DESCRIPTION meta-information ... OK
32* installing the package to build vignettes
33* creating vignettes ... ERROR
34Error: --- re-building 'Supersonic_Routes.Rmd' using rmarkdown
35Quitting from lines 33-54 (Supersonic_Routes.Rmd)
36Error: Error: processing vignette 'Supersonic_Routes.Rmd' failed with diagnostics:
37object 'mach_kph' not found
38--- failed re-building 'Supersonic_Routes.Rmd'
39--- re-building 'Supersonic_Routes_in_depth.Rmd' using rmarkdown
40Quitting from lines 26-38 (Supersonic_Routes_in_depth.Rmd)
41Error: Error: processing vignette 'Supersonic_Routes_in_depth.Rmd' failed with diagnostics:
42'crs_Pacific' is not an exported object from 'namespace:himach'
43--- failed re-building 'Supersonic_Routes_in_depth.Rmd'
44SUMMARY: processing the following files failed:
45 'Supersonic_Routes.Rmd' 'Supersonic_Routes_in_depth.Rmd'
46Error: Error: Vignette re-building failed.
47Execution halted
48Error: Error in proc$get_built_file() : Build process failed
49Calls: ... build_package -> with_envvar -> force ->
50Execution halted
51Error: Process completed with exit code 1.