Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Document and reload your package

Source:R/reload.R
document_and_reload.Rd

This function callsrstudioapi::documentSaveAll(),roxygen2::roxygenise() andpkgload::load_all().

Usage

document_and_reload(  golem_wd=get_golem_wd(),  roclets=NULL,  load_code=NULL,  clean=FALSE,  export_all=FALSE,  helpers=FALSE,  attach_testthat=FALSE,...,pkg)

Arguments

golem_wd

Path to the root of the package. Default isget_golem_wd().

roclets

Character vector of roclet names to use with package.The default,NULL, uses the roxygenroclets option,which defaults toc("collate", "namespace", "rd").

load_code

A function used to load all the R code in the packagedirectory. The default,NULL, uses the strategy defined bytheload roxygen option, which defaults toload_pkgload().Seeload for more details.

clean

IfTRUE, roxygen will delete all files previouslycreated by roxygen before running each roclet.

export_all

IfTRUE (the default), export all objects.IfFALSE, export only the objects that are listed as exportsin the NAMESPACE file.

helpers

ifTRUE loadstestthat test helpers.

attach_testthat

IfTRUE, attachtestthat to the search path,which more closely mimics the environment within test files.

...

Other arguments passed topkgload::load_all()

pkg

Deprecated, please use golem_wd instead

Value

Used for side-effects


[8]ページ先頭

©2009-2025 Movatter.jp