meztez opened a new issue, #37208:
URL: https://github.com/apache/arrow/issues/37208
### Describe the bug, including details regarding any error messages,
version, and platform.
Error that you might see : `*** Unable to find libcurl and openssl`
For systems with multiple R versions installed (Posit Connect, Posit
Workbench...).
Installing arrow could results in unexpected behavior.
Say you run `install.packages("arrow")` using `/opt/R/4.3.1/bin/R` but your
system R version (`which R`) is `/opt/R/4.3.0/bin/R`.
Or maybe R executable is not on your path.
This script
https://github.com/apache/arrow/blob/8c4941b879670ec9dc3608b77637f44fddf32178/r/tools/nixlibs.R#L200
will use the system's R instead of /opt/R/4.3.1/bin/R or R will not be found
resulting in an error.
Would it be possible to locate the currently running R executable and use
that instead?
```r
runner <- "`R CMD config CXX17` `R CMD config CPPFLAGS` `R CMD config
CXX17FLAGS` `R CMD config CXX17STD` -E -xc++"
```
```r
r_exec <- gsub("lib/R$", "bin/R", R.home())
runner <- sprintf("`%s CMD config CXX17` `%s CMD config CPPFLAGS` `%s CMD
config CXX17FLAGS` `%s CMD config CXX17STD` -E -xc++", r_exec, r_exec, r_exec,
r_exec)
```
Thanks
### Component(s)
R
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]