Add the Analysis Package Layout to the current package.
Arguments
- use_quarto
If
TRUE
(the default), use Quarto for publishing (build_quarto_site()
), otherwise usebuild_analysis_site()
.- prompt
If TRUE, prompt before writing
renv.lock
, passed torenv::snapshot()
.
Value
List containing dirs
created, rbuildignore
lines added to .Rbuildignore, gitignore
exclusions added to .gitignore.
Details
When run, use_analysis_package()
:
Creates analysis package directories
Adds exclusions to .gitignore and .Rbuildignore
Adds
extra.css
toanalysis/assets
andpkgdown
(whenuse_quarto
isFALSE
) to fix rendering of GitHub-style task listsAdds
.nojekyll
,_quarto.yml
,changelog.qmd
,index.qmd
andanalysis/_metadata.yml
from templates OR creates_base.yml
inpkgdown
from the firstURL
inDESCRIPTION
Installs the
README.Rmd
template for analysis packages, and thedplyr
package needed for theREADME.Rmd
template