3
CRAN
上的每個軟件包似乎都提供了參考手冊,但與vignettes
相反,它們在安裝軟件包時似乎並未下載或構建。可以這樣做,以便我可以通過R
的命令行訪問它們,或者我只能在CRAN
上訪問它們嗎?參考手冊R
CRAN
上的每個軟件包似乎都提供了參考手冊,但與vignettes
相反,它們在安裝軟件包時似乎並未下載或構建。可以這樣做,以便我可以通過R
的命令行訪問它們,或者我只能在CRAN
上訪問它們嗎?參考手冊R
從給定的包的源代碼,你可以通過R CMD Rd2pdf
建立這樣的:
[email protected]:~$ R CMD Rd2pdf --help
Usage: R CMD Rd2pdf [options] files
Generate PDF output from the Rd sources specified by files, by
either giving the paths to the files, or the path to a directory with
the sources of a package, or an installed package.
Unless specified via option '--output', the basename of the output file
equals the basename of argument 'files' if this specifies a package
or a single file, and 'Rd2' otherwise.
The Rd sources are assumed to be ASCII unless they contain \encoding
declarations (which take priority) or --encoding is supplied or if using
package sources, if the package DESCRIPTION file has an Encoding field.
The output encoding defaults to the package encoding then to 'UTF-8'.
Files are listed in the order given: for a package they are in alphabetic
order of the \name sections.
Options:
-h, --help print short help message and exit
-v, --version print version info and exit
--batch no interaction
--no-clean do not remove created temporary files
--no-preview do not preview generated PDF file
--encoding=enc use 'enc' as the default input encoding
--outputEncoding=outenc
use 'outenc' as the default output encoding
--os=NAME use OS subdir 'NAME' (unix or windows)
--OS=NAME the same as '--os'
-o, --output=FILE write output to FILE
--force overwrite output file if it exists
--title=NAME use NAME as the title of the document
--no-index do not index output
--no-description do not typeset the description of a package
--internals typeset 'internal' documentation (usually skipped)
--build_dir=DIR use DIR as the working directory
The output papersize is set by the environment variable R_PAPERSIZE.
The PDF previewer is set by the environment variable R_PDFVIEWER.
Report bugs at bugs.r-project.org .
[email protected]:~$
你是指幫助的PDF版本。在R會話中,您可以使用'?'或'help()'訪問完全相同的信息。 – Andrie 2014-09-01 14:16:28
我知道。我想以一種格式訪問它們,包括所有可以通過'?'或'help()'一次訪問的主題。作爲「* .pdf」。 – 2014-09-01 14:23:18