0

我正在研究一个 R 包。它在我的 GitHub 上,但是在摆弄 pkgdown 以获得一个漂亮的网站之后,该包不再有效。具体来说,即使在加载包之后,其中的功能也不再可访问:

> remotes::install_github("joeystanley/barktools")
> library(barktools)

该软件包似乎加载正常。

> ?bark

bark 函数的帮助加载正常。

> bark(100)
# Error in bark(100) : could not find function "bark"

谁能帮我弄清楚发生了什么以及我哪里出错了?

> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.5

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] barktools_0.2.0

loaded via a namespace (and not attached):
 [1] prettyunits_1.1.1 ps_1.3.3          fansi_0.4.1       withr_2.2.0       rprojroot_1.3-2   packrat_0.5.0     crayon_1.3.4     
 [8] assertthat_0.2.1  R6_2.4.1          backports_1.1.8   cli_2.0.2         curl_4.3          remotes_2.1.1     rstudioapi_0.11  
[15] callr_3.4.3       tools_4.0.2       glue_1.4.1        xfun_0.15         compiler_4.0.2    processx_3.4.3    pkgbuild_1.1.0   
[22] knitr_1.29   
4

0 回答 0