It works:
help(package="ggplot2")
It does not mean:
x <-"ggplot2" help(package=x) # Error in find.package(pkgName, lib.loc, verbose = verbose) : # there is no package called 'x'
How can I do this to pass x to open the help page?
Put the variable in parentheses:
x <-"ggplot2" help(package=(x))
The help file for ?help Help pretty smooths the states for the package argument:
?help
To avoid using a dewaxed name, for example. (pkg_ref) (see examples).
Help and library iterations to interpret character class input can be built using do.call
library
do.call
x <-"ggplot2" do.call(library, list(x)) do.call(help, list(package=x))
Source: https://habr.com/ru/post/915992/More articles:With iOS, how to check if a URL is empty - urlCreating a huge image in C # - c #SQL How to create a table with values in the form of columns and a new format? - sqljQuery - convert .live () to .on () - jquerySSE Instructions: Byte + Short - x86Horse racing alphanumeric code - assemblyHow generics work in C ++ / CX - c ++How to globally apply an XmlAdapter to a JAXB program? - javaHaving AutoComplete auto-messaging that DOES NOT allow custom text - c #TVirtualStringTree - How to change the [-] / [+] buttons? - delphiAll Articles