Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #623 (related to Collate field, and loadall with S4 classes) #648

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions R/load.r
Expand Up @@ -92,6 +92,14 @@ load_all <- function(pkg = ".", reset = TRUE, recompile = FALSE,

if (!quiet) message("Loading ", pkg$package)

# Apply any @includes to update the Collate entry in the DESCRIPTION file
# Presumes roxygen2::update_collate has been patched
# to do nothing if there are no @includes
roxygen2::update_collate(pkg$path)
# Refresh the pkg structure with any updates to the Collate entry
pkg <- as.package(pkg$path)


# Reloading devtools is a special case. Normally, objects in the
# namespace become inaccessible if the namespace is unloaded before the
# the object has been accessed. This is kind of a hack - using as.list
Expand Down