I think this issue reflects a problem with my understanding of devtools, but it's possible it's my understanding with r2oxygen.
Unexpectedly to me, the error isn't thrown when I run devtools::check() or click RStudio's check button. When I reverted back to devtools 0.8, the same behavior existed, so it's not an issue with devtools 1.0.
Append exportPattern("^[[:alpha:]]+") to the NAMESPACE file created by devtools::document(roclets = c("collate", "namespace","rd") ) before executing devtools::run_examples().
I'd like to learn what specific object(s) need to be added to the existing NAMESPACE file, and what I need to do improve my roxygen2 comments.
Also, I'm curious why devtools::run_examples() returns an error, but devtools::check() does not?
The widely permission exportPattern (see (2) in my initial post) was NOT included in that namespace file (see here).
Edit: Nevermind about the lazy-loading; that requires .rdb and .rdx files, which (I think) are generated when the package is built.
Maybe it's a bug in load_data - currently the dataset in data/ are getting loaded into the namespace environment - but maybe they should be loaded into the package env?
I tried sImply copying objects into $lazydata, and that's apparently not quite enough -- they don't show up in the package env. So I'm going to also have the export process copy objects from $lazydata to the package env.