相关疑难解决方法(0)

NAMESPACE不是由roxygen2生成的.跳过. - 与哈德利书混淆

我正在尝试制作一个包,但是当我运行document()它时,我NAMESPACE not generated by roxygen2. Skipped.试图ggplot2,XML, R6在我的函数中使用包.我按以下方式导入它们:

#' @rdname visualization
#' @param hist_data A table of weather variables with PWS created by hist_data function
#' @param variable A character string of variable name
#' @examples
#' table <- getWeather(city = "San Francisco", state="CA")
#' please <- getConditionsTable(table, "2015-03-09")
#' tab <- hist_data(table, please)
#' head(tab)
#' plot_variable_across_all_pws(hist_data=tab, variable="tempi")
#' @import ggplot2
#' @import XML
#' @import R6
Run Code Online (Sandbox Code Playgroud)

我想知道是什么原因造成了这个错误,Namespace除了我之外什么也没有exportPattern("^[^\\.]")

另外,我正在浏览Hadley的r包书http://r-pkgs.had.co.nz/namespace.html 并且对此行感到困惑: …

namespaces packages r devtools ggplot2

17
推荐指数
3
解决办法
8169
查看次数

标签 统计

devtools ×1

ggplot2 ×1

namespaces ×1

packages ×1

r ×1