Learn R Programming

pkgload

The goal of pkgload is to simulate the process of installing and loading a package, without actually doing the complete process, and hence making package iteration much faster. This was previously part of devtools (it was in fact the original motivation) but has been moved into its own package as part of the devtools conscious uncoupling.

Usage

In most cases you will not use pkgload directly, and instead you'll call it via devtools::load_all().

devtools::load_all()

Code of Conduct

Please note that the pkgload project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Copy Link

Version

Install

install.packages('pkgload')

Monthly Downloads

969,380

Version

1.5.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Lionel Henry

Last Published

June 15th, 2026

Functions in pkgload (1.5.3)

dev_example

Run a examples for an in-development function.
dev_help

In-development help for package loaded with devtools
inst

Get the installation path of a package
help

Drop-in replacements for help and ? functions
check_dep_version

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

Is the package currently under development?
imports_env

Return imports environment for a package
check_suggested

Check that the version of an suggested package satisfies the requirements
dev_meta

Return devtools metadata environment
has_tests

Was devtools installed with tests?
packages

Helper functions for working with development packages.
load_imports

Load all of the imports for a package
package_file

Find file in a package.
load_data

Load data.
load_code

Load R code.
load_all

Load complete package
ns_env

Return the namespace environment for a package.
parse_ns_file

Parses the NAMESPACE file for a package
parse_deps

Parse package dependency strings.
load_dll

Load a compiled DLL
run_pkg_hook

Run user and package hooks.
pkgtest

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

Unload a package
system.file

Replacement version of system.file
pkg_env

Return package environment
pkgload-package

pkgload: Simulate Package Installation and Attach