setup_package | R Documentation |
A simple wrapper function for a suite of standard package set up steps. Intended use is:
Create and clone a new repo. The name of the repo will be the name of
the package, so you might like to run
available::available("potential_name")
to check if the package name
already exists (you don't want conflicts) or if it's a swear.
Open a new R project in the cloned folder. A normal project is fine,
you don't need to select the Package
option.
Run sak::setup_package()
which will which will set up
boilerplate folders and change the RStudio project file, and then adds
things like package documentation, an MIT license, tidy styling, a news
file, spell check, and support for tidy eval, pipes and tibbles.
Fill in the standard details in the description and readme files, then develop as normal.
setup_package(type = "full")
type |
What kind of configuration to create?
|
Nothing returned, this is run for side effects (which include creating multiple files and folders).
## Not run:
sak::setup_package()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.