extractInstallPkg {mergen}R Documentation

extract package names and install them

Description

This function extracts all package names that are needed to run the code returned by the agent and installs them as needed.

Usage

extractInstallPkg(code)

Arguments

code

code block returned by the agent.

Value

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.

Examples


# Check code for packages that need installing
code <- "library(devtools)\n x<-5"
extractInstallPkg(code)



[Package mergen version 0.2.1 Index]