[R-pkg-devel] devtools::check() endless loop

Martin Maechler m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Thu Dec 4 15:55:55 CET 2025


>>>>> Hüsing, Johannes via R-package-devel 
>>>>>     on Thu, 4 Dec 2025 14:22:34 +0000 writes:

    > 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?

Have you tried to use the old safe way

  R CMD build <sourcedirectory>
  R CMD check <pkg>_<version>.tar.gz

it is more manual, i.e. slightly more tedious,  but considerably less error prone ..


>>>>> Hüsing, Johannes via R-package-devel 
>>>>>     on Thu, 4 Dec 2025 14:22:34 +0000 writes:

    > 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 using krebsregister.nrw.de<mailto:Johannes.Huesing using 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 using r-project.org mailing list
    > https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list