duckdb-r
duckdb-r copied to clipboard
'R_user_dir' is not an exported object from 'namespace:tools'
Getting the below error trying to use duckdb.
Installation step:
install.packages("duckdb")
which then compiles duckdb
try to run as per below
> con <- duckdb::dbConnect(duckdb())
Error: 'R_user_dir' is not an exported object from 'namespace:tools'
For this version of R (3.6.3 ), R_user_dir is in backports. Not sure what namespace::tools
is.
Tried running
> duckdb()
Error: 'R_user_dir' is not an exported object from 'namespace:tools'
which is most likely the source calling R_user_dir()
If no workaround exists, any chance a previous version of duckdb would work with R 3.6.3? Current work centred around this version for now.
sessionInfo()
R version 3.6.3 (2020-02-29) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04.6 LTS
Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1
locale:
[1] LC_CTYPE=en_SG.UTF-8 LC_NUMERIC=C LC_TIME=en_SG.UTF-8 LC_COLLATE=en_SG.UTF-8
[5] LC_MONETARY=en_SG.UTF-8 LC_MESSAGES=en_SG.UTF-8 LC_PAPER=en_SG.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_SG.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] duckdb_1.1.0 DBI_1.1.1 pacman_0.5.1
loaded via a namespace (and not attached): [1] compiler_3.6.3 tools_3.6.3