-
Notifications
You must be signed in to change notification settings - Fork 233
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
S3 diagnostics in subfolders #1553
Comments
Noting for future readers: officially, only https://cran.r-project.org/doc/manuals/R-exts.html#Package-subdirectories The R and man subdirectories may contain OS-specific subdirectories named unix or windows.
Can you clarify that this comes from running |
Reproduced: yes, it comes from top-level. Interestingly, it's coming from Lines 34 to 38 in 9652d15
where the sapply(blocks, `[[`, 'file') |> unique()
# [1] "R/expect-doppelganger.R"
# [2] "R/svg.R"
#[3] "R/vdiffr-package.R" But "print.svg" %in% names(env)
# [1] TRUE That's coming from asNamespace("vdiffr")$print.svg
# function (x, ...)
# cat(x, sep = "\n")
# <bytecode: 0x555f55f99850>
# <environment: namespace:vdiffr> I can quite track down the R CMD build vdiffr
tar -tzf vdiffr_1.0.7.9000.tar.gz | grep "/R/."
# vdiffr/R/cpp11.R
# vdiffr/R/embed-svglite.R
# vdiffr/R/expect-doppelganger.R
# vdiffr/R/svg.R
# vdiffr/R/svglite/
# vdiffr/R/svglite/SVG.R
# vdiffr/R/svglite/inlineSVG.R
# vdiffr/R/svglite/utils.R
# vdiffr/R/utils.R
# vdiffr/R/vdiffr-package.R So this looks like " |
I tried simply editing Lines 12 to 14 in 9652d15
But that produces a different error when running roxygen2::roxygenize()
# ℹ Loading vdiffr
# Error in getDLLRegisteredRoutines.DLLInfo(dll, addNames = FALSE) :
# must specify DLL via a “DLLInfo” object. See getLoadedDLLs()
traceback()
# 7: stop(gettextf("must specify DLL via a %s object. See getLoadedDLLs()",
# dQuote("DLLInfo")), domain = NA)
# 6: getDLLRegisteredRoutines.DLLInfo(dll, addNames = FALSE)
# 5: assignNativeRoutines(dlls[[lib]], lib, env, nsInfo$nativeRoutines[[lib]])
# 4: load_dll(path)
# 3: pkgload::load_all(path, helpers = FALSE, attach_testthat = FALSE)
# 2: load_code(base_path)
# 1: roxygen2::roxygenize() Not pursuing this further for now. |
vdiffr has an
R/svglite
subfolder which is not documented but I still get a diagnostic from there:The text was updated successfully, but these errors were encountered: