renv::install("duckdb")
hangs indefinitely
#4214
-
I may have found a bug with Positron's R console, but I wanted to ask here before opening an issue. I've started a fresh Positron project using R 4.1.1. After successfully installing {renv}, I'm able to call renv::install("dplyr")
# # Downloading packages -------------------------------------------------------
# - Downloading cli from CRAN ... OK [554.8 Kb in 0.28s]
# - Downloading withr from CRAN ... OK [101 Kb]
# Successfully downloaded 2 packages in 0.79 seconds. However, renv::install("duckdb")
# # Downloading packages -------------------------------------------------------
# - Downloading duckdb from CRAN ... OK [file is up to date]
# Successfully downloaded 1 package in 0.55 seconds.
#
# The following package(s) will be installed:
# - DBI [1.2.3]
# - duckdb [1.0.0-2]
# These packages will be installed into "~/Projects/dockerized-duckplyr-demo/renv/library/linux-ubuntu-jammy/R-4.4/x86_64-pc-linux-gnu".
# Do you want to proceed? [Y/n]:
y
# # Installing packages --------------------------------------------------------
# - Installing DBI ... OK [linked from cache]
# - Installing duckdb ... So far I've been waiting ~15 minutes for this to install and nothing has changed. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Hmm. I'm not able to reproduce locally with a brand-new project. Could you drop > renv::init()
The following package(s) will be updated in the lockfile:
# RSPM -----------------------------------------------------------------------
- renv [* -> 1.0.7]
The version of R recorded in the lockfile will be updated:
- R [* -> 4.4.0]
- Lockfile written to "~/test-duckdb/renv.lock".
- renv activated -- please restart the R session.
## ---- RESTARTED SESSION
R 4.4.0 exited (preparing for restart)
R 4.4.0 restarted.
- Project '~/test-duckdb' loaded. [renv 1.0.7]
> renv::install("duckdb")
# Downloading packages -------------------------------------------------------
- Downloading duckdb from CRAN ... OK [9.3 Mb in 1.5s]
- Downloading DBI from CRAN ... OK [905.4 Kb in 1.6s]
Successfully downloaded 2 packages in 5.8 seconds.
The following package(s) will be installed:
- DBI [1.2.3]
- duckdb [1.0.0-2]
These packages will be installed into "~/test-duckdb/renv/library/macos/R-4.4/aarch64-apple-darwin20".
Do you want to proceed? [Y/n]:
Y
# Installing packages --------------------------------------------------------
- Installing DBI ... OK [installed binary and cached in 13s]
- Installing duckdb ... OK [installed binary and cached in 0.7s]
Successfully installed 2 packages in 14 seconds. |
Beta Was this translation helpful? Give feedback.
-
Is it perhaps trying to build duckdb from source? That package takes a long long time to build from source, so it could just be in the middle of compiling it. If I remember correctly, upwards of 15-20 min is not unreasonable. Do you see the same in RStudio? Or does it quickly pull in a binary for you there? |
Beta Was this translation helpful? Give feedback.
Is it perhaps trying to build duckdb from source? That package takes a long long time to build from source, so it could just be in the middle of compiling it. If I remember correctly, upwards of 15-20 min is not unreasonable.
Do you see the same in RStudio? Or does it quickly pull in a binary for you there?