there is no package called 'first'

I have created a new package so I found this issue when I wrote devtools::check()

❯ checking examples ... ERROR
  Running massageExamples to create 'first-Ex.R' failed
  Error in find.package(package, lib.loc) : 
    there is no package called 'first'
  Calls: <Anonymous> -> Rd_db -> find.package
  Execution halted
   NONE

R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

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

Can you show us your package, so we can also see what you see?

1 Like

I am sorry, I meant the actual source code of your package, e.g. a GitHub repository or similar.

Thanks. However, I get a very different output than yours. See below. It seems unlikely to me that the output you posted is from this package.

> devtools::check()
══ Building ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Setting env vars:
β€’ CFLAGS    : -Wall -pedantic -fdiagnostics-color=always
β€’ CXXFLAGS  : -Wall -pedantic -fdiagnostics-color=always
β€’ CXX11FLAGS: -Wall -pedantic -fdiagnostics-color=always
β€’ CXX14FLAGS: -Wall -pedantic -fdiagnostics-color=always
β€’ CXX17FLAGS: -Wall -pedantic -fdiagnostics-color=always
β€’ CXX20FLAGS: -Wall -pedantic -fdiagnostics-color=always
── R CMD build ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
βœ”  checking for file β€˜/private/var/folders/ph/fpcmzfd16rgbbk8mxvy9m2_h0000gn/T/RtmpNjKA1k/build-a150d848044/first/DESCRIPTION’ ...
─  preparing β€˜first’:
βœ”  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building β€˜first_0.1.0.tar.gz’

══ Checking ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Setting env vars:
β€’ _R_CHECK_CRAN_INCOMING_USE_ASPELL_           : TRUE
β€’ _R_CHECK_CRAN_INCOMING_REMOTE_               : FALSE
β€’ _R_CHECK_CRAN_INCOMING_                      : FALSE
β€’ _R_CHECK_FORCE_SUGGESTS_                     : FALSE
β€’ _R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_: FALSE
β€’ NOT_CRAN                                     : true
── R CMD check ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
─  using log directory β€˜/private/var/folders/ph/fpcmzfd16rgbbk8mxvy9m2_h0000gn/T/RtmpNjKA1k/filea1507ef4c282/first.Rcheck’
─  using R version 4.2.2 (2022-10-31)
─  using platform: aarch64-apple-darwin20 (64-bit)
─  using session charset: UTF-8
─  using options β€˜--no-manual --as-cran’
βœ”  checking for file β€˜first/DESCRIPTION’ ...
─  checking extension type ... Package
─  this is package β€˜first’ version β€˜0.1.0’
─  package encoding: UTF-8
βœ”  checking package namespace information ...
βœ”  checking package dependencies (2.1s)
βœ”  checking if this is a source package
βœ”  checking if there is a namespace
βœ”  checking for executable files ...
βœ”  checking for hidden files and directories
βœ”  checking for portable file names
βœ”  checking for sufficient/correct file permissions ...
βœ”  checking serialization versions ...
βœ”  checking whether package β€˜first’ can be installed (732ms)
βœ”  checking installed package size ...
βœ”  checking package directory ...
βœ”  checking for future file timestamps (478ms)
W  checking DESCRIPTION meta-information ...
   Non-standard license specification:
     What license is it under?
   Standardizable: FALSE
βœ”  checking top-level files ...
βœ”  checking for left-over files ...
βœ”  checking index information
βœ”  checking package subdirectories ...
βœ”  checking whether the package can be loaded ...
βœ”  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 ...
βœ”  checking loading without being on the library search path ...
W  checking for missing documentation entries ...
   Undocumented code objects:
     β€˜SchoolDataset’
   Undocumented data sets:
     β€˜SchoolDataset’
   All user-level objects in a package should have documentation entries.
   See chapter β€˜Writing R documentation files’ in the β€˜Writing R
   Extensions’ manual.
βœ”  checking contents of β€˜data’ directory ...
βœ”  checking data for non-ASCII characters ...
βœ”  checking LazyData
βœ”  checking data for ASCII and uncompressed saves ...
─  checking examples ... NONE
βœ”  checking for non-standard things in the check directory
βœ”  checking for detritus in the temp directory

   See
     β€˜/private/var/folders/ph/fpcmzfd16rgbbk8mxvy9m2_h0000gn/T/RtmpNjKA1k/filea1507ef4c282/first.Rcheck/00check.log’
   for details.


── R CMD check results ─────────────────────────────────────────────────────────────────────────────────────────────────── first 0.1.0 ────
Duration: 9.8s

❯ checking DESCRIPTION meta-information ... WARNING
  Non-standard license specification:
    What license is it under?
  Standardizable: FALSE

❯ checking for missing documentation entries ... WARNING
  Undocumented code objects:
    β€˜SchoolDataset’
  Undocumented data sets:
    β€˜SchoolDataset’
  All user-level objects in a package should have documentation entries.
  See chapter β€˜Writing R documentation files’ in the β€˜Writing R
  Extensions’ manual.

0 errors βœ” | 2 warnings βœ– | 0 notes βœ”
Error: R CMD check found WARNINGs
Execution halted

Thanks for your effort, how can I fix the issue ?