RStudio - Check Error

Hi,

When I try to run a check with the RStudio interface "Build - Check", it generates this error:

Error: Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
Execution halted

Exited with status 1.

However, when I run the following command line, it works fine.

devtools::check(document = FALSE)

My RStudio version is 2023.12.1 Build 402.

Thanks,
Astrid

1 Like

Did you try running pkgbuild::check_build_tools(debug = TRUE) as recommended?

The fact that devtools::check() runs means the package {devtools} was properly installed, but the error above suggests you might be missing a compiler, that needs to be installed separately from R.

Typically, on Windows, that would be provided by Rtools, on Mac you would need Xcode and GNU Fortran, etc.

Hi Alexis,

I did run the command:

> pkgbuild::check_build_tools(debug = TRUE)
Your system is ready to build packages!

I should have mentioned it in my first post.

The build used to work correctly. I did not do any major update prior to RStudio failure.

Best Regards,
Astrid

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.