Now that you've got a working package skeleton, there are a few steps to finish setting up all the integrations:
Go to https://github.com/yourgithub and create a new repository. Then, in the directory where this package is, create your git repository from the command line, add the files, and push it to GitHub:
git init
git add --all
git commit -m "Initial commit of package skeleton"
git remote add origin git@github.com:yourgithub/simutils.git
git push -u origin master
The pre-release version of the package can be pulled from GitHub using the devtools package:
# install.packages("devtools")
devtools::install_github("yourgithub/simutils", build_vignettes=TRUE)
The repository includes a Makefile to facilitate some common tasks.
$ make test
. Requires the testthat package. You can also specify a specific test file or files to run by adding a "file=" argument, like $ make test file=logging
. test_package
will do a regular-expression pattern match within the file names. See its documentation in the testthat
package.
$ make doc
. Requires the roxygen2 package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.