Closed hrbrmstr closed 1 year ago
If pkgbuild works in the console but not in RStudio I think this must be an RStudio issue, there really isn't any RStudio specific code in pkgbuild.
Well, since you're kinda all on the same team, mebbe y'all could fix this holistically? Or, is that unreasonable?
I've got the same issue
Pretty sure the only course of action is to waste disk space and install the command line tools as well as Xcode (or jury rig symbolic links) since there seems to be no impetus to resolve this across RStudio IDE behavior and the supporting packages it relies upon.
On Fri, Jan 15, 2021 at 12:38 PM Nathan Skene notifications@github.com wrote:
I've got the same issue
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/r-lib/pkgbuild/issues/103#issuecomment-761081249, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD4PNWYERLVNGRXGG4HKY3S2B4THANCNFSM4QOMCY4Q .
Hi, I have this issue following a tutorial
devtools
testthat
xcode-select --install
which took ~30 min all i did was edit the DESCRIPTION file and ran check()
==> devtools::check()
ℹ Updating ohwhaley documentation
ℹ Loading ohwhaley
── Building ─────────────────────── ohwhaley ──
Setting env vars:
• CFLAGS : -Wall -pedantic
• CXXFLAGS : -Wall -pedantic
• CXX11FLAGS: -Wall -pedantic
✓ checking for file ‘/Users/zane/Documents/R_/PACKAGE/ohwhaley/DESCRIPTION’ ...
─ preparing ‘ohwhaley’:
✓ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Removed empty directory ‘ohwhaley/R’
Removed empty directory ‘ohwhaley/man’
─ building ‘ohwhaley_0.0.0.9000.tar.gz’
── Checking ─────────────────────── ohwhaley ──
Setting env vars:
• _R_CHECK_CRAN_INCOMING_REMOTE_: FALSE
• _R_CHECK_CRAN_INCOMING_ : FALSE
• _R_CHECK_FORCE_SUGGESTS_ : 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.
Execution halted
Exited with status 1.
I opened a new issue for this, hopefully it will be fixed this time: https://github.com/rstudio/rstudio/issues/10203
I think we can work around this in pkgbuild, and first try to find a compiler on our own, and only fall back on RStudio if we fail to find one.
update, I installed the full XCode and then everything worked, which sucks as I didn't want to have the full software. Thanks !
@PythonCoderUnicorn Well, this issue is about the opposite, i.e. that pkgbuild in RStudio does not work with the full Xcode and only works with the command line tools.
okay, good to know. Just wanted to share that for me, the full installed fixed my issues of beginner pkg dev, so maybe there is issues unknown to me on this. I thank you for your work on this.
I've left a similar issue for RStudio's internal checks but {pkgbuild} fails to properly see clearly installed build tools during package checks inside RStudio.
In RStudio (latest dailies) I can't even debug this issue:
When I do the same in a terminal R console:
macOS Big Sur (latest Beta), R 4.0.2, Xcode (latest beta)