Skip to content

Commit

Permalink
catch failed system call
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87547 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
smeyer committed Jan 9, 2025
1 parent aec3e51 commit 0804121
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/library/tools/R/install.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# File src/library/tools/R/install.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2024 The R Core Team
# Copyright (C) 1995-2025 The R Core Team
#
# NB: also copyright dates in Usages.
#
Expand Down Expand Up @@ -2815,7 +2815,8 @@ if(FALSE) {
## report the SDK in use: we want to know what it is symlinked to
sdk <- try(system2("xcrun", "--show-sdk-path", TRUE, TRUE), silent = TRUE)
if(!inherits(sdk, "try-error")) {
sdk <- Sys.readlink(sdk)
sdk <- if (length(attr(sdk, "status"))) NA_character_
else Sys.readlink(sdk)
message("using SDK: ", sQuote(sdk))
}
}
Expand Down

0 comments on commit 0804121

Please sign in to comment.