❯ usethis::use_pkgdown_travis()
✔ Setting active project to '/Users/gaborcsardi/works/ps'
✔ Adding 'docs/' to '.gitignore'
● Set up deploy keys by running `travis::use_travis_deploy()`
● Insert the following code in '.travis.yml'
before_cache: Rscript -e 'remotes::install_cran("pkgdown")'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
ENV R_VERSION 4.1.2 | |
RUN apt-get -y update && \ | |
apt-get -y install wget gdebi-core && \ | |
wget https://cdn.rstudio.com/r/ubuntu-2004/pkgs/r-${R_VERSION}_1_amd64.deb && \ | |
gdebi --non-interactive r-${R_VERSION}_1_amd64.deb && \ | |
rm r-${R_VERSION}_1_amd64.deb && \ | |
apt-get -y autoremove gdebi-core && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM tuxmake/clang-15 | |
RUN apt-get update -y ; apt-get install -y curl | |
RUN curl -Ls https://github.com/r-lib/rig/releases/download/latest/rig-linux-latest.tar.gz | tar xz -C /usr/local | |
RUN rig add devel | |
RUN mkdir ~/.R |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h <- curl::new_handle() | |
curl::handle_setheaders( | |
handle = h, | |
"User-Agent" = "git/2.38.1" | |
) | |
res1 <- curl::curl_fetch_memory( | |
handle = h, | |
"https://github.com/r-lib/pak.git/info/refs?service=git-upload-pack" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## From https://github.com/szilard/benchm-dplyr-dt, thanks Szilárd! | |
library(dplyr) | |
n <- 100000000 | |
m <- 1000000 | |
d <- data.frame(x = sample(m, n, replace=TRUE), y = runif(n)) | |
dm <- data.frame(x = sample(m)) |
My answer to https://community.rstudio.com/t/install-arrow-from-posit-package-manager-binary-in-ubuntu/170776/2 which is waiting for moderation.
You need some system packages as well that arrow.so is linking to. There are different ways to see what exactly.
-
You can manually inspect
arrow.so
usingldd arrow.so
so see what is missing. -
Some packages, e.g. pak can look up system requirements. The devel version (from https://pak.r-lib.org/reference/install.html#nightly-builds) is better at this:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:22.04 | |
# install R & pak, set up repos and PPM | |
RUN apt-get update && \ | |
apt-get install -y curl && \ | |
curl -Ls https://github.com/r-lib/rig/releases/download/latest/rig-linux-$(arch)-latest.tar.gz | \ | |
tar xz -C /usr/local && \ | |
rig add release | |
# install local file with pak |
Nested list:
- one
- two
- three
- sub
- sub2
- sub3
- four
OlderNewer