Learn R Programming

⚠️There's a newer version (2.4.5) of this package.Take me there.

devtools (version 1.8.0)

Tools to Make Developing R Packages Easier

Description

Collection of package development tools.

Copy Link

Version

Install

install.packages('devtools')

Monthly Downloads

323,885

Version

1.8.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Hadley Wickham

Last Published

May 9th, 2015

Functions in devtools (1.8.0)

bash

Open bash shell in package directory.
inst

Get the installation path of a package
install_git

Install a package from a git repository
run_examples

Run all examples in a package.
find_rtools

Find rtools.
missing_s3

Find missing s3 exports.
check_cran

Check a package from CRAN.
build_vignettes

Build package vignettes.
dev_packages

Return a vector of names of packages loaded by devtools
check_doc

Check documentation, as R CMD check does.
build_win

Build windows binary 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.
dev_help

Read the in-development help for a package loaded with devtools.
source_gist

Run a script on gist
dev_mode

Activate and deactivate development mode.
check

Build and check a package, cleaning up automatically on success.
devtest

Return the path to one of the packages in the devtools test dir
use_data

Use data in a package.
github_pull

GitHub references
help

Drop-in replacements for help and ? functions
install_deps

Install package dependencies if needed.
is.package

Is the object a package?
RCMD

Run R CMD xxx from within R
compiler_flags

Default compiler flags used by devtools.
build_github_devtools

Build the development version of devtools from GitHub.
check_dep_version

Check that the version of an imported package satisfies the requirements
install_bitbucket

Install a package directly from bitbucket
install_github

Attempts to install a package directly from github.
dev_meta

Return devtools metadata environment
load_imports

Load all of the imports for a package
load_all

Load complete package.
install_gitorious

Attempts to install a package directly from gitorious.
devtools

Package development tools for R.
run_pkg_hook

Run user and package hooks.
install_url

Install a package from a url
package_deps

Find all dependencies of a CRAN or dev package.
parse_ns_file

Parses the NAMESPACE file for a package
install_svn

Install a package from a SVN repository
load_data

Load data.
foofoo

Test function for help
on_path

Test if an object is on the path.
test

Execute all test_that tests in a package.
use_package

Use specified package.
update_packages

Update packages that are missing or out-of-date.
create_description

Create a default DESCRIPTION file for a package.
use_data_raw

Use data-raw to compute package datasets.
install_local

Install a package from a local file
dr_github

Diagnose potential github issues
has_tests

Was devtools installed with tests?
find_topic

Find the rd file that documents a topic.
wd

Set working directory.
with_something

Execute code in temporarily altered environment.
github_pat

Retrieve Github personal access token.
loaded_packages

Return a vector of names of attached packages
ns_env

Return the namespace environment for a package.
as.package

Coerce input to a package.
release

Release package to CRAN.
has_devel

Check if you have a development environment installed.
release_checks

Custom devtools release checks.
a

A number.
reload

Unload and reload package.
system_check

Run a system command and check if it succeeds.
clean_dll

Remove compiled objects from /src/ directory
dev_example

Run a examples for an in-development function.
use_git_hook

Add a git hook.
create

Creates a new package, following all devtools package conventions.
clean_vignettes

Clean built vignettes.
with_debug

Temporarily set debugging compilation flags.
dr_devtools

Diagnose potential devtools issues
unload

Unload a package
use_readme_rmd

Use README.Rmd
load_dll

Load a compiled DLL
use_github

Connect a local repo with github.
load_code

Load R code.
path

Get/set the PATH variable.
pkg_env

Return package environment
revdep_check_save_logs

Run R CMD check on all downstream dependencies.
revdep

Reverse dependency tools.
use_git

Initialise a git repository.
submit_cran

Submit a package to CRAN.
session_info

Print session information
use_build_ignore

Add a file to .Rbuildignore
compile_dll

Compile a .dll/.so from source.
clean_source

Sources an R file in a clean environment.
document

Use roxygen to document a package.
imports_env

Return imports environment for a package
eval_clean

Evaluate code in a clean R session.
install

Install a local development package.
install_version

Install specified version of a CRAN package.
infrastructure

Add useful infrastructure to a package.
lint

Lint all source files in a package.
r_env_vars

Environment variables to set when calling R
show_news

Show package news
parse_deps

Parse package dependency strings.
system.file

Replacement version of system.file
source_url

Run a script through some protocols such as http, https, ftp, etc.
build

Build package.