Devtools 1.6 is now available on CRAN. Devtools makes it so easy to build a package that it becomes your default way to organise code, data and documentation. Learn more at http://r-pkgs.had.co.nz/ . You can get the latest version with:
|
|
We’ve made a lot of improvements to the install and release process:
-
Installation functions now default to
build_vignettes = FALSE, and only install required dependencies (not suggested). They also store a lot of useful metadata. -
install_github()got a lot of love.install_github("user/repo")is now the preferred way to install a package from github (older forms with explicit username parameter are now deprecated). You can supply thehostargument to install packages from a local github enterprise installation. You can get the latest release withuser/repo@*release. -
session_info()uses package installation metdata to show you exactly how every package was installed (locally, from CRAN, from github, …) -
release()uses new webform-based submission process for CRAN, as implemented insubmit_cran(). -
You can add arbitrary extra questions to
release()by defining a functionrelease_questions()in your package. It should return a character vector of questions to ask.
We’ve also added a number of functions to make it easy to get started with various aspects of the package development:
-
use_data()adds data to a package, either indata/(external data) or inR/sysdata.rda(internal data).use_data_raw()sets updata-raw/for your reproducible data generation scripts. -
use_package()sets dependencies and reminds you how to use them. -
use_rcpp()gets you ready to use Rcpp . -
use_testthat()sets up testing infrastructure with testthat . -
use_travis()adds a.travis.ymlfile and tells you how to get started with travis ci . -
use_vignette()creates a draft vignette using Rmarkdown .
There were many other minor improvements and bug fixes. See the release notes for complete list of changes.

