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?
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
? 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
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
'\\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>
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]]