You may have a devtools::load_all() in one of your scripts somewhere

On Thu, Dec 4, 2025 at 07:19 Duncan Murdoch <[email protected]>
wrote:

> You won't get that error if you follow Martin's advice and use `R CMD
> build pkg`, followed by `R CMD check pkg_x.tar.gz`, you'll probably get
> more informative messages.
>
>  From the path reported below, it looks like you are using Windows, so
> my guess is that you do not have Rtools installed, or don't have it
> available to the check process (maybe the tools are not on your PATH).
>
> See https://cran.r-project.org/bin/windows/base/howto-R-4.5.html for
> lots of detail.
>
> Duncan Murdoch
>
> On 2025-12-04 9:22 a.m., Hüsing, Johannes via R-package-devel wrote:
> > When I am trying to build a package, the system stops with request to
> run a function call, which, when executed, displays the same error message
> again. What would be an appropriate way to break that loop?
> >
> >> devtools::check()
> > ══ Documenting
> ═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
> > ℹ Updating staduicc documentation
> > ℹ Loading staduicc
> >
> > ══ Building
> ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
> > Setting env vars:
> > • CFLAGS    : -Wall -pedantic
> > • CXXFLAGS  : -Wall -pedantic
> > • CXX11FLAGS: -Wall -pedantic
> > • CXX14FLAGS: -Wall -pedantic
> > • CXX17FLAGS: -Wall -pedantic
> > • CXX20FLAGS: -Wall -pedantic
> > ── R CMD build
> ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> > * checking for file
> '\\LKR-FILESRV\Epidemiologie\Materialien_Software\staduicc/DESCRIPTION' ...
> OK
> > * preparing 'staduicc':
> > * checking DESCRIPTION meta-information ... OK
> > * excluding invalid files
> > Subdirectory 'R' contains invalid file names:
> >    '.gitkeep'
> > * checking for LF line-endings in source and make files and shell scripts
> > * checking for empty or unneeded directories
> > * building 'staduicc_0.3.1.tar.gz'
> >
> > ══ Checking
> ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
> > Setting env vars:
> > • _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
> > Error: Could not find tools necessary to compile a package
> > Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> >> pkgbuild::check_build_tools(debug = TRUE)
> > Error: Could not find tools necessary to compile a package
> > Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> >> pkgbuild::check_build_tools(debug = TRUE)
> > Error: Could not find tools necessary to compile a package
> > Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> >> pkgbuild::check_build_tools(debug = TRUE)
> > Error: Could not find tools necessary to compile a package
> > Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> >>
> >
> >
> > Dr. Johannes Hüsing
> > Epidemiologie
> >
> > Landeskrebsregister NRW gGmbH
> > Gesundheitscampus 10
> > 44801 Bochum
> >
> > T 0234 54509-216
> > F 0234 54509-499
> > [email protected]<mailto:
> [email protected]>
> > www.landeskrebsregister.nrw<http://www.landeskrebsregister.nrw>
> >
> > Das Landeskrebsregister NRW online
> > FACEBOOK: https://www.facebook.com/LKRNordrheinWestfalen/
> > INSTAGRAM: https://www.instagram.com/landeskrebsregister_nrw
> > LINKEDIN: https://www.linkedin.com/company/87452209/admin/feed/posts/
> >
> > Newsletter LKR NRW - jetzt anmelden unter
> >   https://www.landeskrebsregister.nrw/aktuelles/newsletter
> >
> >
> > Geschäftsführer
> > Dr. Andres Schützendübel
> > Vorsitzender der Gesellschafterversammlung
> > Staatssekretär Matthias Heidmeier
> > Sitz der Gesellschaft
> > Bochum
> > Registergericht
> > Amtsgericht Bochum
> > HRB 17715
> >
> > HINWEIS: Diese Nachricht ist nur für den Adressaten bestimmt. Es ist
> nicht erlaubt, diese Nachricht zu kopieren oder Dritten zugänglich zu
> machen. Sollten Sie irrtümlich diese Nachricht erhalten haben, bitte ich um
> Ihre Mitteilung per E-Mail oder unter der oben angegebenen Telefonnummer.
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > [email protected] mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to