needs
loads and attaches packages, automatically
installing (and attaching) any it can't find in your libraries. It accepts
any number of arguments, given as names or character strings. Optionally,
supply a minimum version on a per-package basis to update old packages as
needed.
needs(..., .printConflicts = F)
package = "version"
.TRUE
to identify any masked functions.
Objects in the base package and the global environment are ignored.
Defaults to FALSE
.needs:::autoload(TRUE)
or needs:::autoload(FALSE)
to turn autoloading on or off, respectively.
needs-package
## Not run: # needs() # returns NULL # # needs(foo, bar) # # # require a minimum version # needs(foo, # bar = "0.9.1", # baz = "0.4.3") # # # ## End(Not run)
Run the code above in your browser using DataCamp Workspace