View source: R/extractInstallPkg.R
extractInstallPkg | R Documentation |
This function extracts all package names that are needed to run the code returned by the agent and installs them as needed.
extractInstallPkg(code)
code |
code block returned by the agent. |
final status of the packages as a logical vector, TRUE if packages is already installed or could be installed. FALSE if the package can't be install.
# Check code for packages that need installing
code <- "library(devtools)\n x<-5"
extractInstallPkg(code)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.