paws-r / paws

Paws, a package for Amazon Web Services in R
https://www.paws-r-sdk.com
Other
314 stars 37 forks source link

Paws Linux Binaries #648

Closed DyfanJones closed 1 year ago

DyfanJones commented 1 year ago

When working on linux paws seems to take a long time to install.

Source: Time difference of 16.62202 mins

We have 2 options:

  1. Push people to user to r2u when working on linux, for example:
FROM rocker/r2u:jammy

RUN apt-get update
RUN apt-get install -y --no-install-recommends \
    libcurl4-openssl-dev \
    libssl-dev \
    libxml2-dev

RUN Rscript -e "install.packages('paws')"

CMD ["R"]
  1. Provide linux binaries to help improve installation. This will be in a similar vain to R torch.
install.packages('paws',
  repos = c(paws = "https://paws-r-builds.s3.amazonaws.com/packages/0.3.0/", CRAN = 'https://cloud.r-project.org')
)

Binaries: Time difference of 21.74674 secs

FROM rocker/r-base

RUN apt-get update
RUN apt-get install -y --no-install-recommends \
    libcurl4-openssl-dev \
    libssl-dev \
    libxml2-dev

RUN Rscript -e "install.packages('paws', repos = c(paws = 'https://paws-r-builds.s3.amazonaws.com/packages/0.3.0/', CRAN = 'https://cloud.r-project.org'))"

CMD ["R"]

When working on cloud services like AWS Sagemaker option 2 would be more beneficial.