rstudio / promises

A promise library for R
https://rstudio.github.io/promises
Other
198 stars 19 forks source link

Installation error: `later_api.h` not found #22

Closed florianm closed 6 years ago

florianm commented 6 years ago

I'm trying to install a package which depends on httpuv, which in turn fails to install with below error on its dependency on promises.

Error:

> devtools::install_github("rstudio/promises")
Downloading GitHub repo rstudio/promises@master
from URL https://api.github.com/repos/rstudio/promises/zipball/master
Installing promises
Running /usr/lib/R/bin/R CMD INSTALL /tmp/RtmpTNCzZs/devtools46b3911a6b5/rstudio-promises-afe9e8f \
  '--library=/home/CORPORATEICT/florianm/R/x86_64-pc-linux-gnu-library/3.4' --install-tests 
* installing *source* package ‘promises’ ...
g++  -I/usr/share/R/include -DNDEBUG  -I"/home/CORPORATEICT/florianm/R/x86_64-pc-linux-gnu-library/3.4/later/include" -I"/home/CORPORATEICT/florianm/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include"    -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
** libs
g++  -I/usr/share/R/include -DNDEBUG  -I"/home/CORPORATEICT/florianm/R/x86_64-pc-linux-gnu-library/3.4/later/include" -I"/home/CORPORATEICT/florianm/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include"    -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c promise_task.cpp -o promise_task.o
promise_task.cpp:2:23: fatal error: later_api.h: No such file or directory
 #include <later_api.h>

Session info:

> sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

Matrix products: default
BLAS: /usr/lib/atlas-base/atlas/libblas.so.3.0
LAPACK: /usr/lib/lapack/liblapack.so.3.0

locale:
 [1] LC_CTYPE=en_AU.UTF-8       LC_NUMERIC=C               LC_TIME=en_AU.UTF-8       
 [4] LC_COLLATE=en_AU.UTF-8     LC_MONETARY=en_AU.UTF-8    LC_MESSAGES=en_AU.UTF-8   
 [7] LC_PAPER=en_AU.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_AU.UTF-8 LC_IDENTIFICATION=C       

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

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.16          rstudioapi_0.7.0-9000 knitr_1.18            xml2_1.2.0           
 [5] magrittr_1.5          usethis_1.0.0.9000    hms_0.4.2             devtools_1.13.3.9000 
 [9] progress_1.2.0        pkgload_0.0.0.9000    debugme_1.1.0         R6_2.2.2             
[13] rlang_0.2.0.9001      fansi_0.2.2           httr_1.3.1            stringr_1.3.0        
[17] tools_3.4.4           pkgbuild_0.0.0.9000   cli_1.0.0.9002        git2r_0.19.0         
[21] selectr_0.4-1         withr_2.1.2           assertthat_0.2.0      digest_0.6.15        
[25] rprojroot_1.3-2       crayon_1.3.4          callr_2.0.2.9000      curl_3.2             
[29] testthat_2.0.0.9000   memoise_1.1.0         glue_1.2.0            stringi_1.2.2        
[33] compiler_3.4.4        desc_1.1.1            backports_1.1.2       prettyunits_1.0.2    
[37] pkgconfig_2.0.1  

Error appears both when install.packages and install_github. Has anyone else encountered this error?

Update: found a fix.

remotes::install_github("r-lib/later")
devtools::install_github("rstudio/promises")
florianm commented 5 years ago

cough ran again into this issue, googled my way straight back to this solution.

For completeness' sake, I'm installing my own R package "dbca-wa/wastdr" from github (repeatedly - installation always worked), the installation only now pulled in a new version of rcpp and promptly threw above error.