Learn R Programming

RWsearch (version 4.7.0)

p_html: HTML Help Page, PDF Manual and Vignettes

Description

p_page opens the default browser, connects to your local CRAN and displays the home page of the package(s). An internet connexion is required.

p_html and p_html2 open the default browser and display the html help page of the package, if it is installed. On Windows, p_html returns a local server address http://127.0.0.1:*.html and subfunctions listed in the page can be explored whereas p_html2 returns a file address file:///C:/*.html with no links to the subfunctions.

p_htmlweb opens the default browser and displays the html help page of the package housed by the University of Pennsylvania. An internet connexion is required.

p_pdf displays in a pdf reader the pdf manual of the package, or generates it on the fly in the current directory if the package is installed. Miktex or Texlive is required. This is a very fast function if the files already exist (and overwrite= FALSE) and a (relatively) slow function if the files needs to be generated, usually much slower than:

p_pdfweb downloads from you local CRAN the pdf manual of the package, saves it in the current directory and opens it in the pdf application of your browser. An internet connexion is required.

p_vig is a wrapper of utils::browseVignettes. It opens the default browser and displays a list of the vignettes related to a package, if they exist.

p_vig_all wraps utils::browseVignettes(NULL). It opens the default browser and displays all vignettes available in the computer. This can be a very large html file.

p_check opens the default browser, connects to your local CRAN and displays for each package the CRAN Package Check Results or the last Check Results recorded in CRAN archive (with the date of the archive). An internet connexion is required. A global table for package source Checks can be displayed with h_cranchecks. A global table for Windows Binaries' package Check can be displayed with h_crancheckwindows.

p_check_lst reads the check results from the repository and print the results as a list, with a message if the package has been archived. An internet connexion is required.

p_archive opens the default browser and displays the package archives. An internet connexion is required.

Usage

p_page(..., char = NULL, repos = getOption("repos")[1])

p_html(..., char = NULL)

p_html2(..., char = NULL)

p_htmlweb(..., char = NULL)

p_pdf(..., char = NULL, overwrite = FALSE, dir = ".")

p_pdfweb(..., char = NULL, repos = getOption("repos")[1])

p_vig(..., char = NULL)

p_vig_all()

p_check(..., char = NULL, repos = getOption("repos")[1])

p_check_lst(..., char = NULL, repos = getOption("repos")[1])

p_archive(..., char = NULL)

Arguments

...

any format recognized by cnsc, except list. A vector of packages.

char

(name to) a character vector. Use this argument if ... fails or if you call the function from another function. If used, argument ... is ignored.

repos

character. The address of your local CRAN.

overwrite

logical. Overwrite already existing file (and use LaTeX intensively).

dir

character. The directory in which the files are read or written. Default value "." is the current directory.

Examples

Run this code
# NOT RUN {
p_page(pacman, sos, repos = "https://cloud.r-project.org") 
p_html(pacman, sos) 
p_htmlweb(pacman) 
p_check(pacman, zmatrix, zonator, NotApkg, repos = "https://cloud.r-project.org") 
p_check_lst(pacman, zmatrix, zonator, NotApkg, repos = "https://cloud.r-project.org") 
p_archive(pacman)
p_vig(pacman)
p_pdfweb(sos, repos = "https://cloud.r-project.org")
p_pdf(sos, dir = file.path(tempdir(), "ppdf"))
# }

Run the code above in your browser using DataLab