Closed lz100 closed 4 years ago
The rsconnect package itself does not detect these dependencies; Packrat does that. If this is still a problem for you, I'd suggest creating a tiny Packrat project that demonstrates the issue and submitting it to that repo:
I have a function which contains following code:
reconnect treat variable
pkg
as a package. The intend of this function is to check if my environment has some packages but installation is not requried. This is to help users when they lunch the app locally. I will not install packages for them, just checking. reconnect thinks I need to install these packages, and it treats the variablepkg
as a package name too.If I don't include this line, deployment was successful.
For now, I have to use hack like
eval(parse(text = "requireNamespace(pkg, quietly = TRUE)"))
. I would appreciate if you could fix this bug.