devtools v1.9.1


Monthly downloads



by Hadley Wickham

Tools to Make Developing R Packages Easier

Collection of package development tools.

Functions in devtools

Name Description
compile_dll Compile a .dll/.so from source.
ns_env Return the namespace environment for a package.
dev_meta Return devtools metadata environment
imports_env Return imports environment for a package
create Creates a new package, following all devtools package conventions.
clean_source Sources an R file in a clean environment.
dr_devtools Diagnose potential devtools issues
pkg_env Return package environment
build_win Build windows binary package.
with_something Execute code in temporarily altered environment.
release_checks Custom devtools release checks.
install_bitbucket Install a package directly from bitbucket
check_dep_version Check that the version of an imported package satisfies the requirements
as.package Coerce input to a package.
find_topic Find the rd file that documents a topic.
create_description Create a default DESCRIPTION file for a package.
use_github Connect a local repo with GitHub.
is.package Is the object a package?
use_readme_rmd Use README.Rmd
check_failures Parses R CMD check log file for ERRORs, WARNINGs and NOTEs
load_all Load complete package.
with_debug Temporarily set debugging compilation flags.
revdep_check_save_logs Run R CMD check on all downstream dependencies.
build_vignettes Build package vignettes.
lint Lint all source files in a package.
clean_dll Remove compiled objects from /src/ directory
path Get/set the PATH variable.
RCMD Run R CMD xxx from within R
bash Open bash shell in package directory.
check_cran Check a package from CRAN.
compiler_flags Default compiler flags used by devtools.
check Build and check a package, cleaning up automatically on success.
dev_mode Activate and deactivate development mode.
devtools Package development tools for R.
document Use roxygen to document a package.
infrastructure Add useful infrastructure to a package.
find_rtools Find rtools.
github_pull GitHub references
github_pat Retrieve Github personal access token.
load_dll Load a compiled DLL
release Release package to CRAN.
install_git Install a package from a git repository
run_pkg_hook Run user and package hooks.
build_github_devtools Build the development version of devtools from GitHub.
install_local Install a package from a local file
parse_deps Parse package dependency strings.
build Build package.
check_doc Check documentation, as R CMD check does.
clean_vignettes Clean built vignettes.
a A number.
devtest Return the path to one of the packages in the devtools test dir
dev_packages Return a vector of names of packages loaded by devtools
system_check Run a system command and check if it succeeds.
dev_example Run a examples for an in-development function.
use_coveralls Deprecated Functions
load_code Load R code.
test Execute all test_that tests in a package.
use_build_ignore Add a file to .Rbuildignore
dr_github Diagnose potential GitHub issues
r_env_vars Environment variables to set when calling R
has_tests Was devtools installed with tests?
use_data Use data in a package.
has_devel Check if you have a development environment installed.
eval_clean Evaluate code in a clean R session.
install Install a local development package.
load_data Load data.
loaded_packages Return a vector of names of attached packages
show_news Show package news
install_url Install a package from a url
submit_cran Submit a package to CRAN.
update_packages Update packages that are missing or out-of-date.
use_data_raw Use data-raw to compute package datasets.
missing_s3 Find missing s3 exports.
reload Unload and reload package.
package_deps Find all dependencies of a CRAN or dev package.
on_path Test if an object is on the path.
system.file Replacement version of system.file
foofoo Test function for help
load_imports Load all of the imports for a package
use_git_hook Add a git hook.
revdep Reverse dependency tools.
use_package Use specified package.
session_info Print session information
dev_help Read the in-development help for a package loaded with devtools.
help Drop-in replacements for help and ? functions
install_deps Install package dependencies if needed.
install_github Attempts to install a package directly from GitHub.
install_svn Install a package from a SVN repository
run_examples Run all examples in a package.
uninstall Uninstall a local development package.
use_git Initialise a git repository.
use_github_links Add GitHub links to DESCRIPTION.
unload Unload a package
parse_ns_file Parses the NAMESPACE file for a package
install_version Install specified version of a CRAN package.
inst Get the installation path of a package
source_url Run a script through some protocols such as http, https, ftp, etc.
source_gist Run a script on gist
wd Set working directory.
No Results!

Last month downloads


Include our badge in your README