Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
I'm trying to get the R package installed in a Debian docker image that already contains R and RStudio (via rocker/rstudio from dockerhub), as well as arrow-cpp, parquet-cpp and pyarrow installed via conda. I.e. I should have all required arrow dependencies in my conda environment's /lib and /include folders.
I then tried to install the R package in two ways (as stated in the README, having devtools, and after managing to get git2r installed)
1/ via remotes
remotes::install_github("apache/arrow/r", ref="76e1bc5dfb9d08e31eddd5cbcc0b1bab934da2c7")
2/ from source
git clone https://github.com/apache/arrow.git cd arrow/r R -e 'remotes::install_deps()' R CMD INSTALL --configure-vars='INCLUDE_DIR=/root/miniconda/envs/my_env/include LIB_DIR=/root/miniconda/envs/my_env/lib' .
In both cases the install seems to work fine:
** building package indices ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (arrow)
But when I then do the following as prompted:
library(arrow) arrow::install_arrow()
The result is
Error: 'install_arrow' is not an exported object from 'namespace:arrow'
And running the example without calling that non-existing function I get the error
Error in Table__from_dots(dots, schema) : Cannot call Table__from_dots(). Please use arrow::install_arrow() to install required runtime libraries.
So I don't know if I'm doing something wrong or if the documentation isn't up to date? Specifically, what is the arrow::install_arrow() function supposed to install, given that I already have the arrow and parquet libs and headers installed, and supposedly they've been used (linked to) when I installed the R package?
In general, is there any way to get this package installed in the above context (arrow-cpp etc. installed via conda)?
Attachments
Issue Links
- relates to
-
ARROW-5555 [R] Add install_arrow() function to assist the user in obtaining C++ runtime libraries
- Resolved