Package rhub. November 1, 2017

Similar documents
Package rcmdcheck. R topics documented: November 10, 2018

Package spark. July 21, 2017

Package goodpractice

Package sessioninfo. June 21, 2017

Package cli. November 5, 2017

Package filelock. R topics documented: February 7, 2018

Package zip. R topics documented: March 11, Title Cross-Platform 'zip' Compression Version 2.0.1

Package pkgbuild. October 16, 2018

Package available. November 17, 2017

Package shinytest. May 7, 2018

Package desc. May 1, 2018

Package callr. August 29, 2016

Package sankey. R topics documented: October 22, 2017

Package remotes. December 21, 2017

Package callr. January 30, 2018

Package dkanr. July 12, 2018

Package cli. March 19, 2019

Package crossword.r. January 19, 2018

Package robotstxt. November 12, 2017

Package fastdummies. January 8, 2018

Package calpassapi. August 25, 2018

Package covr. October 18, 2018

Package datasets.load

Package condusco. November 8, 2017

Package repec. August 31, 2018

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package styler. December 11, Title Non-Invasive Pretty Printing of R Code Version 1.0.0

Package messaging. May 27, 2018

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package spelling. December 18, 2017

Package statsdk. September 30, 2017

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package internetarchive

Package bigqueryr. October 23, 2017

Package githubinstall

Package patentsview. July 12, 2017

Package semver. January 6, 2017

Package knitrprogressbar

Package data.world. April 5, 2018

Package opencage. January 16, 2018

Package librarian. R topics documented:

Package riingo. April 16, 2018

Package geniusr. December 6, 2017

Package aws.transcribe

Package radix. September 17, 2018

Package IRkernel. January 7, 2019

Package postal. July 27, 2018

Package oec. R topics documented: May 11, Type Package

Package crayon. September 16, 2017

Package guardianapi. February 3, 2019

Package rbraries. April 18, 2018

Package clipr. June 23, 2018

Package bigqueryr. June 8, 2018

Package wdman. January 23, 2017

Package RPresto. July 13, 2017

Package validara. October 19, 2017

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Package wikitaxa. December 21, 2017

Package pkgload. July 8, 2018

Package essurvey. August 23, 2018

Package datapasta. January 24, 2018

Package tiler. June 9, 2018

Package binman. January 14, 2017

Package BiocManager. November 13, 2018

Package googlecloudstorager

Package projector. February 27, 2018

Package farver. November 20, 2018

Package fingertipsr. May 25, Type Package Version Title Fingertips Data for Public Health

Package rwars. January 14, 2017

Package autocogs. September 22, Title Automatic Cognostic Summaries Version 0.1.1

Package plumber. December 2, 2017

Package routr. October 26, 2017

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package memoise. April 21, 2017

Package tidytransit. March 4, 2019

Package geogrid. August 19, 2018

Package swatches. December 21, 2017

Package rtika. May 2, 2018

Package virustotal. May 1, 2017

Package httpcache. October 17, 2017

Package mapedit. R topics documented: March 2, Title Interactive Editing of Spatial Data in R

Package io. January 15, 2018

Package algorithmia. September 13, 2016

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package tabulizer. June 7, 2018

Package cloudml. June 12, 2018

Package pdfsearch. July 10, 2018

Package rzeit2. January 7, 2019

Package canvasxpress

Package rgho. R topics documented: January 18, 2017

Package tensorflow. January 17, 2018

Package googlecomputeenginer

Package taxizedb. June 21, 2017

Package facerec. May 14, 2018

Package testit. R topics documented: June 14, 2018

Package ssh. June 4, 2018

Package promote. November 15, 2017

Package gtrendsr. August 4, 2018

Package rgdax. January 7, 2019

Transcription:

Title Connect to 'R-hub' Version 1.0.2 Author Gábor Csárdi Package rhub November 1, 2017 Maintainer Gábor Csárdi <csardi.gabor@gmail.com> Run 'R CMD check' on any of the 'R-hub' architectures, from the command line. The current architectures include 'Windows', 'macos', 'Solaris' and various 'Linux' distributions. License MIT + file LICENSE LazyData true URL https://github.com/r-hub/rhub#readme BugReports https://github.com/r-hub/rhub/issues RoxygenNote 6.0.1.9000 Roxygen list(markdown = TRUE) Imports assertthat, callr, clisymbols, crayon, desc, httr, jsonlite, parsedate, prettyunits, R6, rappdirs, rcmdcheck (>= 1.2.1), rematch, utils, whoami, withr Suggests covr, testthat Encoding UTF-8 1

2 check R topics documented: check............................................ 2 check_for_cran....................................... 3 check_on_linux....................................... 4 last_check.......................................... 5 list_my_checks....................................... 5 list_package_checks.................................... 6 list_validated_emails.................................... 6 platforms.......................................... 7 rhub_check......................................... 7 validate_email........................................ 8 Index 10 check Check an R package on r-hub Check an R package on r-hub check(path = ".", platform = NULL, email = NULL, valgrind = FALSE, check_args = character(), env_vars = character(), show_status = interactive()) path platform email valgrind check_args env_vars show_status Path to a directory containing an R package, or path to source R package tarball built with R CMD build or devtools::build(). Platform to build/check the package on. See platforms() for the available platforms. If this is NULL, and the R session is interactive, then a menu is shown. If it is NULL, and the session is not interactive, then the default r-hub platforms is used. Can take a vector of platforms which saves time by building one R package tarball that is used for all the platforms specified. Email address to send notification to about the build. It must be a validated email address, see validate_email(). If NULL, then the email address of the maintainer is used, as defined in the DESCRIPTION file of the package. Whether to run the check in valgrind. Only supported on Linux currently, and ignored on other platforms. Extra arguments for the R CMD check command. Environment variables to set on the builder machine before the check. A named character vector. Whether to show the status of the build as it is happening.

check_for_cran 3 check(".") check("mypackage_1.0.0.tar.gz", platform = "fedora-clang-devel") check_for_cran Check an R-package on R-hub, for a CRAN submission This function calls check() with arguments and platforms, that are suggested for a CRAN submission. check_for_cran(path = ".", email = NULL, check_args = "--as-cran", env_vars = c(`_r_check_force_suggests_` = "true", `_R_CHECK_CRAN_INCOMING_USE_ASPELL_` = "true"), platforms = NULL,...) path Details email check_args env_vars platforms Path to a directory containing an R package, or path to source R package tarball built with R CMD build or devtools::build(). Email address to send notification to about the build. It must be a validated email address, see validate_email(). If NULL, then the email address of the maintainer is used, as defined in the DESCRIPTION file of the package. for R CMD check. By default --as-cran is used. Environment variables to set on the builder. By default _R_CHECK_FORCE_SUGGESTS_=true is set, to require all packages used. _R_CHECK_CRAN_INCOMING_USE_ASPELL_=true is also set, to use the spell checker. Character vector of platform ids to use (see platforms()), or NULL. If NULL, then a set of default platforms will be selected, see below.... Additional arguments are passed to check(). In particular, if platforms is NULL (the default), then It checks the package on Windows, and Linux. It checks the package on R-release and R-devel. It uses the --as-cran argument to R CMD build. It requires all dependencies, including suggested ones.

4 check_on_linux ch <- check_for_cran("package", show_status = FALSE) ch$update() ch$livelog(3) check_on_linux Check an R package on an r-hub platform These functions provide a quick easy to use interface to check a package on a platform with some particular aspect. Which platform they use might change over time. check_on_linux(path = ".",...) check_on_windows(path = ".",...) check_on_macos(path = ".",...) check_on_debian(path = ".",...) check_on_ubuntu(path = ".",...) check_on_fedora(path = ".",...) check_on_centos(path = ".",...) check_with_roldrel(path = ".",...) check_with_rrelease(path = ".",...) check_with_rpatched(path = ".",...) check_with_rdevel(path = ".",...) check_with_valgrind(path = ".",...) check_with_sanitizers(path = ".",...) path Path to a directory containing an R package, or path to source R package tarball built with R CMD build or devtools::build().... Additional arguments are passed to check().

last_check 5 last_check The last rhub check of this R session rhub caches the id(s) of the last submission. This can be retrieved with last_check. last_check() check("packagedir") last_check() last_check()$livelog() list_my_checks List all checks for an email address List all checks for an email address list_my_checks(email = email_address(), package = NULL, howmany = 20) email package Email address. By default it is guessed with whoami::email_address(). The address must be validated, see validate_email(). NULL, or a character scalar. Can be used to restrict the search for a single package. howmany How many checks to show. The current API limit is 20.

6 list_validated_emails ch <- list_my_checks() ch ch$details() list_package_checks List checks of a package List checks of a package list_package_checks(package = ".", email = NULL, howmany = 20) package email Directory of an R package, or a package tarball. Email address that was used for the check(s). If NULL, then the maintainer address is used. howmany How many checks to show. The current maximum of the API is 20. ch <- list_my_checks() ch ch$details(1) list_validated_emails List validated email addresses List validated email addresses list_validated_emails()

platforms 7 A data frame with two columns: email and token. If in interactive mode, and there are no validated email addresses, then a message is printed and the data frame is returned invisibly. See Also Other email validation: validate_email platforms List all r-hub platforms The platforms are pretty-printed in a short format. Use as.data.frame(platforms()) to get all available platform metadata. platforms() platforms() as.data.frame(platforms()) rhub_check An rhub_check object holds status and results of rhub checks An rhub_check object holds status and results of rhub checks This class is similar to rhub_check (it inherites from it), but it shows the results of the checks in a more consice format by default. To show the details, call the $details() method. ch$update() ch$print(...) ch$web(which = NULL) ch$livelog(which = 1) chl$update() chl$print(...) chl$details() chl$livelog(which = 1)

8 validate_email Details ch An rhub check object. It can be created using check(), list_my_checks() or list_package_checks(). See also last_check().... Extra arguments are currently ignored. which Which check to show, if the object contains multiple checks. For web the default is all checks. For livelog the default is the first check. A check can be selected via its number or id. An rhub_check object can be created by check(), list_my_checks(), or list_package_checks(). last_check() returns the last check(s) submitted from the current R session. ch$update() updates the status of the check. Printing the check status to the screen does not perform an update, unless the status of the check(s) is unknown. ch$print() prints the status of the check(s) to the screen. ch$web() opens a tab or window in the default web browser, that points to the detailed logs of the check. ch$livelog() shows the live log of the check. The live log can be interrupted using the usual interruption keyboard shortcut, usually CTRL+c or ESC. The list_my_checks() and list_package_checks() functions create rhub_check_list objects. See rhub_check for the description of the inherited chl$update(), chl$print(), chl$livelog() methods. chl$details() prints the details for all checks in the list. check() ch <- last_check() ch$update() ch$web() ch$livelog() chl <- list_my_checks() chl chl$details() validate_email Validate an email address on r-hub To build and check R packages on r-hub, you need to validate your email address. This is because r-hub sends out emails about build results.

validate_email 9 validate_email(email = NULL, token = NULL) email token The email address to validate. Token obtained from rhub, to validate the email address. Details The rhub package stores validated email addresses in a user configuration file, at a platformdependent location. On your current platform the file is at /Users/gaborcsardi/Library/Application Support/rhub/validated_emails.csv. To validate a new email address, call this function from an interactive R session, without any arguments. To add an email address that was validated before (probably on another machine), to the configuration file, call this function with the email and token arguments. See Also Other email validation: list_validated_emails

Index check, 2 check(), 3, 4, 8 check_for_cran, 3 check_on_centos (check_on_linux), 4 check_on_debian (check_on_linux), 4 check_on_fedora (check_on_linux), 4 check_on_linux, 4 check_on_macos (check_on_linux), 4 check_on_ubuntu (check_on_linux), 4 check_on_windows (check_on_linux), 4 check_with_rdevel (check_on_linux), 4 check_with_roldrel (check_on_linux), 4 check_with_rpatched (check_on_linux), 4 check_with_rrelease (check_on_linux), 4 check_with_sanitizers (check_on_linux), 4 check_with_valgrind (check_on_linux), 4 last_check, 5 last_check(), 8 list_my_checks, 5 list_my_checks(), 8 list_package_checks, 6 list_package_checks(), 8 list_validated_emails, 6, 9 platforms, 7 platforms(), 2, 3 rhub_check, 2, 3, 5, 7, 7, 8 rhub_check_for_cran (rhub_check), 7 rhub_check_list (rhub_check), 7 validate_email, 7, 8 validate_email(), 2, 3, 5 whoami::email_address(), 5 10