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.csstoanalysis/assetsandpkgdown(whenuse_quartoisFALSE) to fix rendering of GitHub-style task listsAdds
.nojekyll,_quarto.yml,changelog.qmd,index.qmdandanalysis/_metadata.ymlfrom templates OR creates_base.ymlinpkgdownfrom the firstURLinDESCRIPTIONInstalls the
README.Rmdtemplate for analysis packages, and thedplyrpackage needed for theREADME.Rmdtemplate
