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