opened
jmcloughlin
username_0
I've tried several variations of installing RCpp and readr separately, explicitly (or not) specifying they be from source, on latest openbsd snapshot after a clean installation of R, but readr always fails.  Any suggestion on how to resolve this?  It seems closely related to #1008.

After successfully installing RCpp from source as well as the other tidyverse dependcies pull in by readr, 

```r
sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-unknown-openbsd6.7 (64-bit)
Running under: OpenBSD puffyx1.my.domain 6.7 GENERIC.MP#234 amd64

Matrix products: default
BLAS:   /usr/local/lib/R/lib/libRblas.so.37.0
LAPACK: /usr/local/lib/R/lib/libRlapack.so.37.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.0.0
```
And the error message (excerpting most of the compiling) is:

```r
install.packages(c("readr"), repos = "http://lib.stat.cmu.edu/R/CRAN/")
Installing package into ‘/home/me/R/x86_64-unknown-openbsd6.7-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/readr_1.3.1.tar.gz'
Content type 'application/x-gzip' length 268853 bytes (262 KB)
==================================================
downloaded 262 KB

* installing *source* package ‘readr’ ...
** package ‘readr’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
c++ -std=gnu++11 -I"/usr/local/lib/R/include" -DNDEBUG  -I'/home/me/R/x86_64-unknown-openbsd6.7-library/4.0/Rcpp/include' -I'/home/me/R/x86_64-unknown-openbsd6.7-library/4.0/BH/include' -I/usr/local/include  -I. -Ircon -fpic  -O2 -pipe  -c Collector.cpp -o Collector.o
...
...
...
cc -I"/usr/local/lib/R/include" -DNDEBUG  -I'/home/me/R/x86_64-unknown-openbsd6.7-library/4.0/Rcpp/include' -I'/home/me/R/x86_64-unknown-openbsd6.7-library/4.0/BH/include' -I/usr/local/include   -fpic  -O2 -pipe  -c rcon/connection.c -o rcon/connection.o
mkdir -p ../inst/rcon
c++ -std=gnu++11 -shared -L"/usr/local/lib/R/lib" -L/usr/local/lib -Wl,-R/usr/local/lib/R/lib -o ../inst/rcon/librcon.so rcon/connection.o
c++ -std=gnu++11 -shared -L/usr/local/lib/R/lib -L/usr/local/lib -Wl,-R/usr/local/lib/R/lib -o readr.so Collector.o CollectorGuess.o Iconv.o LocaleInfo.o RcppExports.o Reader.o Source.o Tokenizer.o TokenizerDelim.o TokenizerFwf.o TokenizerWs.o connection.o datetime.o grisu3.o init.o localtime.o parse.o read.o type_convert.o write.o write_connection.o write_delim.o -L. -lrcon -L../inst/rcon -Wl,-rpath,$ORIGIN/../rcon -L/usr/local/lib/R/lib -lR
installing via 'install.libs.R' to /home/me/R/x86_64-unknown-openbsd6.7-library/4.0/00LOCK-readr/00new/readr
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘readr’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/me/R/x86_64-unknown-openbsd6.7-library/4.0/00LOCK-readr/00new/readr/libs/readr.so':
  Cannot load specified object
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/me/R/x86_64-unknown-openbsd6.7-library/4.0/readr’

The downloaded source packages are in
        ‘/tmp/Rtmpqvf15G/downloaded_packages’
Warning message:
In install.packages(c("readr"), repos = "http://lib.stat.cmu.edu/R/CRAN/") :
  installation of package ‘readr’ had non-zero exit status
```

Apologies for the lack of proper reprex formatting: pandoc is not available on OpenBSD (yes I want to use OpenBSD!), and thanks for any help.
recurrence of readr install failure on OpenBSD
issue
created
jimhester
username_1
try installing the development version of readr, I think it is likely to work.

```r
remotes::install_github("tidyverse/readr")
```
comment
closed
jmcloughlin
username_0
issue
created
jmcloughlin
username_0
Indeed that did the trick!  Many thanks!
comment