Skip to content
Back to formatted view

Raw Message

Message-ID: <CAL3ufUJ2RFK16xaoom5ciqvPk+EeQ1Sqg_CXjZouyvd-G5-eeQ@mail.gmail.com>
Date: 2025-12-04T17:19:05Z
From: Josiah Parry
Subject: [R-pkg-devel] devtools::check() endless loop
In-Reply-To: <0be71322-0052-46a5-a3de-96e8758e30ea@gmail.com>

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

On Thu, Dec 4, 2025 at 07:19 Duncan Murdoch <murdoch.duncan at gmail.com>
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
> > Johannes.Huesing at krebsregister.nrw.de<mailto:
> Johannes.Huesing at krebsregister.nrw.de>
> > 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]]
> >
> > ______________________________________________
> > R-package-devel at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

	[[alternative HTML version deleted]]