Hi! I'm struggling with R CMD check finding errors in my package examples, but not when I run devtools::run_examples(fresh = TRUE).
The package in question is here: GitHub - ffverse/ffscrapr: R API Client for Fantasy Football League Platforms (the failing branch being feature/env
)
and an example of (an automated) check failure: start work on putting GET into an environment object by tanho63 · Pull Request #25 · ffverse/ffscrapr · GitHub
and yet the same example works fine via devtools::run_example(fresh = TRUE)
:
I started getting this issue specifically in this feature branch, which involved moving an object into the global environment via the .onLoad()
function in zzz.R, and then I'm referencing it via get()
in my main package functions, so I'm curious if it's related to not finding the object in the global env.
Would love to hear any thoughts!