admin管理员组文章数量:1123364
I'm creating an R package that used to have tidyverse listed under Depends
in the Description file. I was cutting out all unnecessary packages, which was also tidyverse, as i learned, that this package shouldn't be imported in packages. I also got a note, that tidyverse should be moved to Imports
, where all the other packages are listed.
However, when i try building the vignette, the code stops due to Error: "Undefined columns selected". I can run all chunks manually without error, but the error occurs as long as tidyverse is not listed under Depends
. The error also occurs when having tidyverse listed under Input
.
I don't know where the error could be. The traceback from the Knit / R Cmd Check is:
Error in (function (command = NULL, args = character(), error_on_status = TRUE, …
:
! System command 'Rcmd.exe' failed
Exit status: 1 stdout & stderr:
Backtrace:
- devtools::check(document = FALSE, check_dir = dirname(getwd()))
- withr::with_envvar(pkgbuild::compiler_flags(FALSE), action = "prefix", …
- base::force(code)
- pkgbuild::build(pkg$path, tempdir(), args = build_args, quiet = quiet, …
- pkgbuild:::withr_with_makevars(compiler_flags(debug = FALSE), { …
- pkgbuild:::withr_with_envvar(c(R_MAKEVARS_USER = makevars_file), { …
- base::force(code)
- base::force(code)
- pkgbuild:::withr_with_temp_libpaths(rcmd_build_tools(options$cmd, c(options$path, …
- base::force(code)
- pkgbuild::rcmd_build_tools(options$cmd, c(options$path, options$args), …
- pkgbuild::with_build_tools({ …
- pkgbuild:::withr_with_path(rtools_path(), code)
- base::force(code)
- base::withCallingHandlers(callr::rcmd_safe(..., env = env, spinner = FALSE, …
- callr::rcmd_safe(..., env = env, spinner = FALSE, show = FALSE, …
- callr:::run_r(options)
- base::with(options, with_envvar(env, do.call(processx::run, c(list(bin, …
- base::with.default(options, with_envvar(env, do.call(processx::run, …
- base::eval(substitute(expr), data, enclos = parent.frame())
- base::eval(substitute(expr), data, enclos = parent.frame())
- callr:::with_envvar(env, do.call(processx::run, c(list(bin, args = real_cmdargs, …
- base::force(code)
- base::do.call(processx::run, c(list(bin, args = real_cmdargs, stdout_line_callback = real_…
- (function (command = NULL, args = character(), error_on_status = TRUE, …
- base::throw(new_process_error(res, call = sys.call(), echo = echo, …
- | base::signalCondition(cond)
- (function (e) …
- asNamespace("callr")$err$throw(e) Ausführung angehalten
Exited with status 1.
When i have tidyverse listed under Depends
I get the note:
Package in Depends field not imported from: 'tidyverse' These packages need to be imported from (in the NAMESPACE file) for when this namespace is loaded but not attached.
Basically my goal is to get the package running without this note. Best case without depending on tidyverse, as this is not reccomended by the authors.
本文标签: rTidyverse in Package Depends ImportsStack Overflow
版权声明:本文标题:r - Tidyverse in Package Depends Imports - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736564492a1944686.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论