Questions tagged r

Explore the latest questions and answers asked by our top developers.

Running R image while installing necessary linux libs on a cluster

I am running some heavvy R analyses, I would like to move to the cluster of the university. To do this, I need to install every single R package I need. Along with that, I’d need to install the necessary linux libraries from which some R packages depend. I’m not receiving much collaboration from the […]

By mightaskalot
Published
Categorised as cluster-computing, docker, r Tagged , ,

Issue creating docker image which installs rstan

I have the following image: FROM rocker/r-ver:4.1.2 RUN apt-get update && apt-get install -y –no-install-recommends apt-utils ed libnlopt-dev && apt-get clean && rm -rf /var/lib/apt/lists/ RUN apt-get update RUN apt install software-properties-common -y # https://github.com/stan-dev/rstan/wiki/Configuring-C-Toolchain-for-Linux RUN add-apt-repository -y ppa:marutter/rrutter4.0 RUN add-apt-repository -y ppa:c2d4u.team/c2d4u4.0+ RUN apt-get update RUN apt install -y r-cran-rstan # https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started#installation-of-rstan RUN Rscript […]

By baxx
Published
Categorised as docker, r, rstan, ubuntu Tagged , , ,

Error in library(leaflet) : there is no package called ‘leaflet’

I wrote the docker file like this to deploy the shiny r application FROM rocker/r-base:latest RUN apt-get update && apt-get install -y –no-install-recommends sudo libcurl4-gnutls-dev libcairo2-dev libxt-dev libssl-dev libssh2-1-dev && rm -rf /var/lib/apt/lists/* RUN install.r shiny RUN install.r shinydashboard RUN R -e "install.packages(c(‘ggmap’,’ggplot2′,’leaflet’),dependencies = TRUE, repos=’http://cran.rstudio.com/’)" RUN echo "local(options(shiny.port = 3838, shiny.host = ‘0.0.0.0’))" > […]

By Janith Rathnayaka
Published
Categorised as docker, leaflet, r, r-leaflet, shiny Tagged , , , ,

Access mariadb docker container from R

I’ve set up a docker container with photoprism, which is self-hosted replacement for Google Photos, and imported all my pictures into its database. Now I think it would be really cool to get access to the MariaDB database that the program uses. The database is in a separate docker container: $ docker ps CONTAINER ID […]

By JBGruber
Published
Categorised as docker, mariadb, r Tagged , ,

Error using package ‘xlsx’ in dockerized shiny app

I want to dockerize a shiny app which makes use of the package xlsx. A simplified version of the app is posted below. It works fine with most of the packages but for xlsx I get an error: Error in library(xlsx) : there is no package called ‘xlsx’ How can I make this work? Dockerfile […]

By volfi
Published
Categorised as docker, r, shiny Tagged , ,

Run NodeJS and R in same Docker container

I am having issues running a NodeJS application and R in the same docker container and installing a couple of packages. My Dockerfile looks like this: # Create image based on the official Node 6 image from the dockerhub FROM node:12.16.3 # Create a directory where our app will be placed RUN mkdir -p /usr/src/app […]

By papafredo6
Published
Categorised as docker, docker-compose, dockerfile, node.js, r Tagged , , , ,

How to create Dockerfile with R + Anaconda3 + non-root User

I need to create a Dockerfile that emulates a normal workspace. We have a virtual machine where we train models. We Use R and Python3. I want to automate some of the processes without changing the codebase. e.g. ~ must point to a /home/<some user> Biggest problem is Anaconda3 in docker. because every RUN is […]

By Koroslak
Published
Categorised as anaconda3, docker, dockerfile, python, r Tagged , , , ,

Rfast package not found when installing via docker

I’m a newbie to both R and Docker. I’m trying to install R packages in Dockerfile via the following command RUN Rscript -e "install.packages(c(‘Rfast’, ‘data.table’, ‘tools’, ‘DT’, ‘stringr’), repos = ‘https://cloud.r-project.org/’)" it works fine for all the packages except for Rfast. After I build my docker image and run it via AWS lambda function I […]

By Zulqarnain Haider
Published
Categorised as aws-lambda, cran, docker, python, r Tagged , , , ,

R Dockerfile build takes very long time

I have an R project that runs inside a Docker container. My issue is that building the docker image takes up to 30 mins when I use install_packages. I have tried to use some of the binary packages such as r-cran-logging r-cran-pbapply r-cran-dplyr r-cran-dbi but the build still takes around 30 mins with the majority […]

By user782400
Published
Categorised as docker, r Tagged ,

Failed to deploying multiple docker application in one port using Nginx. Only first container succeed

First of all, i’m new to programming, so pardon my not-so-good-looking code since i extract it from various tutorials. It will be a long question As the title said, i’m struggling with deploying multiple apps created with docker containers, into one port. The app is built using R plumber API. For those who doesn’t familiar […]

By western11
Published
Categorised as docker, docker-compose, nginx, plumber, r Tagged , , , ,
1 23

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq