Skip to content

Devtools 1.4

Compare
Choose a tag to compare
@hadley hadley released this 20 Nov 18:28

Installation improvements

  • install() now respects the global option keep.source.pkgs.
  • install() gains a build_vignettes which defaults to TRUE, and ensures
    that vignettes are built even when doing a local install. It does this
    by forcing local = FALSE if the package has vignettes, so R CMD build
    can follow the usual process. (#344)
  • install_github() now takes repo names of the form username/repo -
    this is now the recommended form for install_github if your username is
    not hadley ;)
  • install_github() now adds details on the source of the installed package
    (e.g. repository, SHA1, etc.) to the package DESCRIPTION file. (Thanks to JJ
    Allaire)
  • Adjusted install_version() to new meta data structure on CRAN.
    (Thanks to Kornelius Rohmeyer)
  • Fixed bug so that install_version() works with version numbers that
    contain hyphens. (Thanks to Kornelius Rohmeyer)
  • install_deps() is now exported, making it easier to install the dependencies
    of a package.

Other minor improvements

  • build(binary = TRUE) now no longer installs the package as a side-effect.
    (#335)
  • build_github_devtools() is a new function which makes it easy for Windows
    users to upgrade to the development version of devtools.
  • create_description() does a better job of combining defaults and user
    specified options. (#332)
  • install() also installs the dependencies that do not have the required
    versions; besides, the argument dependencies now works like
    install.packages() (in previous versions, it was essentially
    c("Depends", "Imports", "LinkingTo")) (thanks, Yihui Xie, #355)
  • check() and check_cran() gain new check_dir argument to control where
    checking takes place (#337)
  • check_devtools() no longer incorrectly complains about a vignettes/
    directory
  • Decompression of zip files now respects getOption("unzip") (#326)
  • dev_help will now use the Rstudio help pane, if you're using a recent
    version of Rstudio (#322)
  • Release is now a little bit smarter: if it's a new package, it'll ask you
    to read and agree to the CRAN policies; it will only ask about
    dependencies if it has any.
  • source_url() (and source_gist()) accept SHA1 prefixes.
  • source_gist() uses the github api to reliably locate the raw gist.
    Additionally it now only attempts to source files with .R or .r
    extensions, and gains a quiet argument. (#348)
  • Safer installation of source packages, which were previously extracted
    directly into the temp directory; this could be a problem if directory
    names collide. Instead, source packages are now extracted into unique
    subdirectories.