pkgload
Simulates loading an R package during development without a full install
pkgload is quietly wiring R package development into modern IDE tooling.
◆Recent moves
- 1mo ago
pkgload 1.5.3 runs unload hooks when reloading a package
load_all() now runs the previous package's unload hooks on reload regardless of how it was loaded, while deliberately keeping the old namespace and DLL alive so existing references do not break. Errors from .onUnload() are demoted to warnings — a pragmatic choice that stops a faulty hook from trapping you mid-development.
View source ↗ - 3mo ago
pkgload 1.5.2 improves S7 topic handling
Improved handling of S7 topics. A narrow adjustment for R's newer object system with no broader effect on the load_all() workflow.
View source ↗ - 4mo ago
pkgload 1.5.0 supports breakpoint injection in Positron
Adds support for injecting breakpoints in Positron, continuing the pattern of pkgload acting as the bridge between a package under development and the editor around it.
View source ↗ - 10mo ago
pkgload 1.4.1 adds a debug flag option, hardens compile_commands
An explicit debug option controls debug compiler flags, and the compile_commands.json generator is hardened for packages compiling extra libraries such as ragg, sources in subdirectories, and existing R_SHARE_DIR settings. Follow-through on the LSP integration introduced in 1.4.0.
View source ↗ - 2y ago
pkgload 1.4.0 generates compile_commands.json for LSP servers
Introduces experimental compile_commands.json generation after each load_all(), letting LSP servers like clangd understand a package's C and C++ sources. The reset argument is removed outright because recent R versions no longer permit unlocking a namespace environment — an external constraint forcing an API change.
View source ↗ - 2y ago
pkgload 1.3.4 exposes a parent temp directory for subprocesses
Sets PKGLOAD_PARENT_TEMPDIR on load, giving subprocess-based workflows such as devtools::test() and devtools::document() a predictable place to cache results. Small, but it addresses a real coordination problem between parent and child R sessions.
View source ↗