Skip to content

Commit 39dd08c

Browse files
author
kalibera
committed
Tweak R CMD check to treat loadNamespace("pkg") as use of the package
(PR#18466). From Duncan Murdoch. git-svn-id: https://svn.r-project.org/R/trunk@88502 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 0b6e64b commit 39dd08c

File tree

1 file changed

+1
-0
lines changed
  • src/library/tools/R

1 file changed

+1
-0
lines changed

src/library/tools/R/QC.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6094,6 +6094,7 @@ function(package, dir, lib.loc = NULL)
60946094
## and is in e.g. R.oo
60956095
if(!dunno) {
60966096
pkg <- as.character(pkg)
6097+
all_imports <<- c(all_imports, pkg)
60976098
if(Call %in% c("loadNamespace",
60986099
"requireNamespace")) {
60996100
if(pkg %notin%

0 commit comments

Comments
 (0)