Skip to content

Instantly share code, notes, and snippets.

@zsusswein
Last active September 18, 2023 15:41
Show Gist options
  • Save zsusswein/499860f585116575e6b9c06fbb6abe30 to your computer and use it in GitHub Desktop.
Save zsusswein/499860f585116575e6b9c06fbb6abe30 to your computer and use it in GitHub Desktop.
Installing precompiled arrow into a one-off script
# This works for many common packages, not just arrow!
# fast install from https://arrow.apache.org/docs/r/articles/install.html#method-1a---binary-r-package-containing-libarrow-binary-via-rspmconda
options(
HTTPUserAgent =
sprintf(
"R/%s R (%s)",
getRversion(),
paste(getRversion(), R.version["platform"], R.version["arch"], R.version["os"])
)
)
# May need to switch from jammy (Ubuntu 22.04 LTS) to something else depending on OS version (e.g. focal, darwin)
install.packages("arrow", repos = "https://packagemanager.rstudio.com/all/__linux__/jammy/latest")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment