RDocumentation
Moon
Learn R
Search all packages and functions
⚠️
There's a newer version (2.4.5) of this package.
Take me there.
devtools (version 1.6.1)
Tools to make developing R code easier
Description
Collection of package development tools.
Copy Link
Copy
Link to current version
Version
Version
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.2
2.3.1
2.3.0
2.2.2
2.2.1
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
1.13.6
1.13.5
1.13.3
1.13.2
1.13.1
1.13.0
1.12.0
1.11.1
1.11.0
1.10.0
1.9.1
1.8.0
1.7.0
1.6.1
1.5
1.4.1
1.3
1.2
1.1
1.0
0.8
0.7.1
0.6
0.5.1
0.4
0.3
0.2
0.1
Down Chevron
Install
install.packages('devtools')
Monthly Downloads
1,281,541
Version
1.6.1
License
GPL (>= 2)
Maintainer
Hadley Wickham
Last Published
October 7th, 2014
Functions in devtools (1.6.1)
Search functions
create_description
Create a default DESCRIPTION file for a package.
clean_vignettes
Clean built vignettes.
with_debug
Temporarily set debugging compilation flags.
reload
Unload and reload package.
load_imports
Load all of the imports for a package
document
Use roxygen to document a package.
install_git
Install a package from a git repository
use_data
Use data in a package.
eval_clean
Evaluate code in a clean R session.
has_tests
Was devtools installed with tests?
install
Install a local development package.
cran_env_vars
Cran environmental variables. The environment variables that are used CRAN when checking packages. These environment variables are from the R Internals document. The only difference from that document is that here,
_R_CHECK_CRAN_INCOMING_
is not set to
TRUE
because it is so slow.
as.package
Coerce input to a package.
is.package
Is the object a package?
devtest
Return the path to one of the packages in the devtools test dir
session_info
Print session information
system.file
Replacement version of system.file
create
Creates a new package, following all devtools package conventions.
load_all
Load complete package.
github_pat
Retrieve Github personal access token.
a
A number.
inst
Get the installation path of a package
find_topic
Find the rd file that documents a topic.
dev_help
Read the in-development help for a package loaded with devtools.
install_url
Install a package from a url
test
Execute all
test_that
tests in a package.
wd
Set working directory.
build
Build package.
has_devel
Check if you have a development environment installed.
imports_env
Return imports environment for a package
install_version
Install specified version of a CRAN package.
load_dll
Load a compiled DLL
dev_meta
Return devtools metadata environment
build_github_devtools
Build the development version of devtools from GitHub.
load_data
Load data.
install_local
Install a package from a local file
check_cran
Check a package from CRAN.
release
Release package to CRAN.
bash
Open bash shell in package directory.
with_something
Execute code in temporarily altered environment.
dev_example
Run a examples for an in-development function.
clean_source
Sources an R file in a clean environment.
pkg_env
Return package environment
devtools
Package development tools for R.
build_vignettes
Build package vignettes.
loaded_packages
Return a vector of names of attached packages
install_gitorious
Attempts to install a package directly from gitorious.
help
Drop-in replacements for help and ? functions
show_news
Show package news
missing_s3
Find missing s3 exports.
source_url
Run a script through some protocols such as http, https, ftp, etc.
run_pkg_hook
Run user and package hooks.
install_svn
Install a package from a SVN repository
use_build_ignore
Add a file to
.Rbuildignore
ns_env
Return the namespace environment for a package.
compile_dll
Compile a .dll/.so from source.
compiler_flags
Default compiler flags used by devtools.
check
Build and check a package, cleaning up automatically on success.
foofoo
Test function for help
github_pull
GitHub references
use_package
Use specified package.
install_bitbucket
Install a package directly from bitbucket
install_deps
Install package dependencies
load_code
Load R code.
revdep
Reverse dependency tools.
run_examples
Run all examples in a package.
check_doc
Check documentation, as
R CMD check
does.
submit_cran
Submit a package to CRAN.
dev_mode
Activate and deactivate development mode.
install_github
Attempts to install a package directly from github.
check_dep_version
Check that the version of an imported package satisfies the requirements
infrastructure
Add useful infrastructure to a package.
build_win
Build windows binary package.
parse_deps
Parse package dependency strings.
path
Get/set the PATH variable.
parse_ns_file
Parses the NAMESPACE file for a package
find_rtools
Find rtools.
clean_dll
Remove compiled objects from /src/ directory
unload
Unload a package
source_gist
Run a script on gist
on_path
Test if an object is on the path.
dev_packages
Return a vector of names of packages loaded by devtools
r_env_vars
Environment variables to set when calling R
use_data_raw
Use
data-raw
to compute package datasets.