Skip to content
Prev 4077 / 12125 Next

[R-pkg-devel] Installing conda dependecy onAttach

On 14/06/2019 5:04 a.m., Michael Gruenstaeudl wrote:
You can't do that in a CRAN package.  You're not allowed to modify the 
user's system.

What you can do is include a function to install the dependency, and in 
your .onLoad (not .onAttach, which should rarely be used) try to detect 
if it is present.  If it is not, you can print a message telling the 
user what to do, and fail the load with a call to stop().

Duncan Murdoch