setup_project | R Documentation |
This function:
creates standard folders for analytical projects
exempts /outputs/.
, and data & temp files from syncing with git
adds a markdown readme
asks if you want to use {renv}
asks if you want to use {targets}
setup_project(default_branch = NULL, type = "full")
default_branch |
(str, default = |
type |
What kind of configuration to create?
|
The folders created are:
code
for your scripts
data
for small, local data
outputs
for your outputs, not synced with git
R
for you custom functions
Temporary files exempted from syncing are:
History files
.Rhistory
.Rapp.history
Session Data files
.RData
User-specific files
.Ruserdata
Example code in package build process
-Ex.R
Output files from R CMD build
/
.tar.gz
Output files from R CMD check
/.Rcheck/
RStudio files
.Rproj.user/
Produced vignettes
vignettes/
.html
vignettes/*.pdf
OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
.httr-oauth
Knitr and R markdown default cache directories
*_cache/
/cache/
Temporary files created by R markdown
*.utf8.md
.knit.md
R Environment Variables
.Renviron
pkgdown site
docs/
Output folder
outputs/
Translation temp files
po/
~
Leaflet file folders
*_files/
Office and web documents
*.docx
*.html
*.csv
*.xls
*.xlsx
*.ppt
*.pptx
## Not run:
sak::setup_project(default_branch = "main") # This will make all your folders
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.