hal9
hal9 copied to clipboard
Need to fix R CMD check error
❯ checking for missing documentation entries ... WARNING
Undocumented code objects:
‘h9_get’ ‘h9_node’ ‘h9_set’
All user-level objects in a package should have documentation entries.
See chapter ‘Writing R documentation files’ in the ‘Writing R
Extensions’ manual.
❯ checking for code/documentation mismatches ... WARNING
Codoc mismatches from documentation object 'h9_start':
h9_start
Code: function(path = ., port = NULL, timeout = 600, nobrowse =
FALSE)
Docs: function(path = ., port = NULL, timeout = 600, nobrowse =
false)
Mismatches in argument default values:
Name: 'nobrowse' Code: FALSE Docs: false
❯ checking Rd \usage sections ... WARNING
Undocumented arguments in documentation object 'h9_new'
‘path’
Undocumented arguments in documentation object 'h9_start'
‘path’ ‘port’ ‘timeout’ ‘nobrowse’
Functions with \usage entries need to have the appropriate \alias
entries, and all their arguments documented.
The \usage entries must correspond to syntactically valid R code.
See chapter ‘Writing R documentation files’ in the ‘Writing R
Extensions’ manual.
❯ checking for GNU extensions in Makefiles ... WARNING
Found the following file(s) containing GNU extensions:
src/Makevars
Portable Makefiles do not use GNU extensions such as +=, :=, $(shell),
$(wildcard), ifeq ... endif, .NOTPARALLEL See section ‘Writing portable
packages’ in the ‘Writing R Extensions’ manual.
❯ checking installed package size ... NOTE
installed size is 21.2Mb
sub-directories of 1Mb or more:
libs 21.1Mb
❯ checking dependencies in R code ... NOTE
Error: package or namespace load failed for ‘hal9’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users/javierluraschi/code/hal9-next/hal9.Rcheck/hal9/libs/hal9.so':
dlopen(/Users/javierluraschi/code/hal9-next/hal9.Rcheck/hal9/libs/hal9.so, 0x0006): symbol not found in flat namespace '_kSecAttrKeyType'
Call sequence:
6: stop(msg, call. = FALSE, domain = NA)
5: value[[3L]](cond)
4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
3: tryCatchList(expr, classes, parentenv, handlers)
2: tryCatch({
attr(package, "LibPath") <- which.lib.loc
ns <- loadNamespace(package, lib.loc)
env <- attachNamespace(ns, pos = pos, deps, exclude, include.only)
}, error = function(e) {
P <- if (!is.null(cc <- conditionCall(e)))
paste(" in", deparse(cc)[1L])
else ""
msg <- gettextf("package or namespace load failed for %s%s:\n %s",
sQuote(package), P, conditionMessage(e))
if (logical.return && !quie
Execution halted
❯ checking R code for possible problems ... NOTE
h9_start: no visible binding for global variable ‘.’
process_request : <anonymous>: no visible global function definition
for ‘setNames’
Undefined global functions or variables:
. setNames
Consider adding
importFrom("stats", "setNames")
to your NAMESPACE file.
0 errors ✔ | 7 warnings ✖ | 3 notes ✖
Error: R CMD check found WARNINGs
Execution halted
Exited with status 1.