我一直无法让我的包裹通过所有发布检查。
具体来说,当我在包的目录中运行“rhub:check_for_cran()”时,我会在包上收到以下注释(见下文)。这给我带来了一些问题,因为我无法找到指定的文件(
find . -name NULL
不返回任何内容,与“lastMiKTeXException”文件类似)。
rhub::check_for_cran()
─ Building package
─ Uploading package
─ Preparing build, see status at
https://builder.r-hub.io/status/ZooID_0.2.0.tar.gz-4140ebefbbee44f8b5176374045aae03
https://builder.r-hub.io/status/ZooID_0.2.0.tar.gz-08717d34861c4645a10441f40b95fa26
https://builder.r-hub.io/status/ZooID_0.2.0.tar.gz-274380c1dc27462b8e4af1e4e806a46c
─ Build started
─ Creating new user
─ Downloading and unpacking package file
─ Querying package dependencies
─ Installing package dependencies
─ Running R CMD check
setting _R_CHECK_FORCE_SUGGESTS_ to false
setting R_COMPILE_AND_INSTALL_PACKAGES to never
setting R_REMOTES_STANDALONE to true
setting R_REMOTES_NO_ERRORS_FROM_WARNINGS to true
setting _R_CHECK_FORCE_SUGGESTS_ to true
setting _R_CHECK_CRAN_INCOMING_USE_ASPELL_ to true
'getOption("repos")' replaces Bioconductor standard repositories, see
'help("repositories", package = "BiocManager")' for details.
Replacement repositories:
CRAN: https://cloud.r-project.org
─ using log directory 'C:/Users/USERBbWwYyuoDA/ZooID.Rcheck' (724ms)
─ using R Under development (unstable) (2023-11-18 r85554 ucrt)
─ using platform: x86_64-w64-mingw32
─ R was compiled by
gcc.exe (GCC) 12.3.0
GNU Fortran (GCC) 12.3.0
─ running under: Windows Server 2022 x64 (build 20348)
─ using session charset: UTF-8
─ using option '--as-cran' (730ms)
✔ checking for file 'ZooID/DESCRIPTION'
─ checking extension type ... Package
─ this is package 'ZooID' version '0.2.0'
─ package encoding: UTF-8 (724ms)
N checking CRAN incoming feasibility
Maintainer: 'Arick Grootveld <[email protected]>'
Found the following (possibly) invalid URLs:
URL: https://github.com/arickGrootveld/ZooID_RPackage.git (moved to https://github.com/arickGrootveld/ZooID_RPackage)
From: DESCRIPTION
Status: 200
Message: OK
✔ checking package namespace information
✔ checking package dependencies
✔ checking if this is a source package
✔ checking if there is a namespace (731ms)
✔ checking for executable files
✔ checking for hidden files and directories
✔ checking for portable file names
✔ checking serialization versions (1.4s)
✔ checking whether package 'ZooID' can be installed
✔ checking installed package size
✔ checking package directory
✔ checking for future file timestamps (732ms)
✔ checking DESCRIPTION meta-information
✔ checking top-level files
✔ checking for left-over files
✔ checking index information (729ms)
✔ checking package subdirectories (738ms)
✔ checking R files for non-ASCII characters
✔ checking R files for syntax errors
✔ checking whether the package can be loaded (726ms)
✔ checking whether the package can be loaded with stated dependencies
✔ checking whether the package can be unloaded cleanly
✔ checking whether the namespace can be loaded with stated dependencies
✔ checking whether the namespace can be unloaded cleanly (732ms)
✔ checking loading without being on the library search path
✔ checking use of S3 registration
✔ checking dependencies in R code
✔ checking S3 generic/method consistency (1.5s)
✔ checking replacement functions
✔ checking foreign function calls
✔ checking R code for possible problems (2.9s)
✔ checking Rd files
✔ checking Rd metadata
✔ checking Rd line widths (727ms)
✔ checking Rd cross-references
✔ checking for missing documentation entries
✔ checking for code/documentation mismatches (2.3s)
✔ checking Rd \usage sections (740ms)
✔ checking Rd contents
✔ checking for unstated dependencies in examples
✔ checking examples (1.4s)
─ checking PDF version of manual ... [12s] OK (11.5s)
✔ checking HTML version of manual (1.4s)
N checking for non-standard things in the check directory
Found the following files/directories:
''NULL''
N checking for detritus in the temp directory
Found the following files/directories:
'lastMiKTeXException'
─ Done with R CMD check
─ Cleaning up files and user
尝试搜索有问题的文件,希望它们存在,以便我可以删除它们,但在粗略搜索期间它们没有出现。
我只是在这里添加一个“答案”,因为另一个用户指出我所问的问题是在 RHub 端,而不是我的。
以下是 RHubs GitHub 页面上的两个问题:
此外,我修复了 GitHub url 问题并顺利提交了包。