If you use a gsplot function before the library is loaded, then pkg.env is not correct, which makes allowedTypes in config.R empty.
# unhelpful match.arg error
gsplot::gsplot()
Error in match.arg(type, choices = allowedTypes) :
'arg' should be one of
# more useful error about not know what gsplot is
gsplot::points(gsplot(), 1,2)
Error in override("graphics", "points", object, ...) :
could not find function "gsplot"
If you use a gsplot function before the library is loaded, then
pkg.env
is not correct, which makesallowedTypes
inconfig.R
empty.Should we throw a more helpful error?