Skip to content

devtools 1.9.1

Compare
Choose a tag to compare
@hadley hadley released this 13 Sep 12:42
  • Avoid importing heavy dependencies to speed up loading (#830, @krlmlr).
  • Remove explicit library(testthat) call in test() (#798, @krlmlr).
  • as.package() and load_all() gain new argument create. Like other
    functions with a pkg argument, load_all() looks for a DESCRIPTION file
    in parent directories - if create = TRUE it will be automatically
    created if there's a R/ or data/ directory (#852, @krlmlr).
  • build_vignettes() gains dependencies argument (#825, @krlmlr).
  • build_win() now uses curl instead of RCurl for ftp upload.
  • check() now uses a better strategy when cran = TRUE. Instead of
    attempting to simulate --as-cran behaviour by turning on certain env vars,
    it now uses --as-cran and turns off problematic checks with env vars (#866).
    The problematic cran_env_vars() function has been removed.
  • find_rtools() now looks for registry keys in both HKCU (user) and
    HKLM (admin) locations (@Kevin-Jin, #844)
  • install() can now install dependencies from remote repositories by
    specifying them as Remotes in the DESCRIPTION file (#902, @jimhester).
    See vignette("dependencies") for more details.
  • install_*() detects if called on a Bioconductor package and if so,
    automatically includes the Bioconductor repositories if needed (#895,
    @jimhester).
  • install_deps() now automatically upgrades out of date dependencies. This
    is typically what you want when you're working on a development version of a
    package. To suppress this behaviour, set upgrade_dependencies = FALSE
    (#863). install_deps() is more careful with ... - this means additional
    arguments to install_* are more likely to work (#870).
  • install_gitorious() has been removed since gitorious no longer exists
    (#913).
  • load_all() no longer fails if a useDynLib() entry in the NAMESPACE
    is incorrect. This should make it easy to recover from an incorrect
    @useDynLib, because re-documenting() should now succeed.
  • release() works for packages not located at root of git repository
    (#845, #846, @mbjones).
  • revdep_check() now installs suggested packages by default (#808), and
    sets NOT_CRAN env var to false (#809). This makes testing more similar to
    CRAN so that more packages should pass cleanly. It also sets RGL_USE_NULL
    to true to stop rgl windows from popping up during testing (#897). It
    also downloads all source packages at the beginning - this makes life a
    bit easier if you're on a flaky internet connection (#906).
  • New uninstall() removes installed package (#820, @krlmlr).
  • Add use_coverage() function to add codecov.io or coveralls.io to a project,
    deprecate use_coveralls() (@jimhester, #822, #818).
  • use_cran_badge() uses canonical url form preferred by CRAN.
  • use_data() also works with data from the parent frame (#829, @krlmlr).
  • use_git_hook() now creates .git/hooks if needed (#888)
  • GitHub integration extended: use_github() gains a protocol argument (ssh or https), populates URL and BugReports fields of DESCRIPTION (only if non-existent or empty), pushes to the newly created GitHub repo, and sets a remote tracking branch. use_github_links() is a new exported function. dr_github() diagnoses more possible problems. (#642, @jennybc).
  • use_travis(): Default travis script leaves notifications on default
    settings.
  • uses_testthat() and check_failures() are now exported (#824, #839,
    @krlmlr).
  • use_readme_rmd() uses uses_git() correctly (#793).
  • with_debug() now uses with_makevars() rather than with_env(), because R
    reads compilation variables from the Makevars rather than the environment
    (@jimhester, #788).
  • Properly reset library path after with_lib() (#836, @krlmlr).
  • remove_s4classes() performs a topological sort of the classes
    (#848, #849, @famuvie).
  • load_all() warns (instead of failing) if importing symbols, methods, or classes
    from NAMESPACE fails (@krlmlr, #921).