Is it possible to run a command during package install?

My package uses webshot and phantomjs. I would like the package to run the command webshot::install_phantomjs during install so that the user doesn't have to do it.

Is this possible?

Thanks in advance!

https://r-pkgs.org/Code.html#when-you-do-need-side-effects

Found solution above.

Apparently there is no way to execute code during installation, but there are hooks for package load or attachment.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.