Comments (5)
sounds interesting. could you share that file here via this ticket?
from btydplus.
Sure, here it is:
## Adapted from zamora/r-devtools
## Start with the official rocker image (lightweight Debian)
FROM rocker/r-base:latest
# Install external dependencies
RUN apt-get update -qq \
&& apt-get install -t unstable -y --no-install-recommends \
libcurl4-openssl-dev \
libssl-dev \
libsqlite3-dev \
libxml2-dev \
qpdf \
vim \
libgsl-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
# Install devtools and testthat
#RUN Rscript -e 'install.packages(c("devtools","testthat"),dependencies = TRUE)'
RUN install2.r --error \
devtools \
testthat \
gsl
RUN Rscript -e 'devtools::install_github("mplatzer/BTYDplus", dependencies=TRUE)'
When you will run the image, you will need to forward X11 for the plotting tools as explained in:
http://stackoverflow.com/a/25334301/5251962
from btydplus.
thanks Paolo! I have only little experience with Docker, but shouldn't that file then rather be hosted at DockerHub? as of now, I am not convinced that each and every R package should include (and maintain) that same docker file template.
from btydplus.
I think it is a matter of choice - I agree that Docker is not that common in the R community, but I have seen quite a lot of Python packages that maintain one and I think it is a nice idea for installing/testing in isolation, especially for packages that have a lot of dependencies, hence my initial question.
In my opinion the cons are:
- Not many users will use that
- Not sure if there is any CRAN requirement on that
- Not sure how to include it in the CI framework
While the pros are:
- It saves time to whoever may want to test/deploy the package without going through the whole R + dependencies installation process.
- It allows for a generally easier testing & deployment
-It keeps the dockerfile here rather than in an additional location - It is a single lightweight additional file and it does not affect in any way the users not using docker
from btydplus.
close as wontfix
from btydplus.
Related Issues (20)
- Add "m.x" to elog2cbs() output HOT 2
- mcmc.PlotTrackingCum throws error for Pareto/NBD (Abe)
- add tests for recoverability of Pareto/NBD (Abe) parameters with custom covariates
- Throw error for empty data frame? HOT 1
- slice_sample_cpp loop does not finish
- accept tibbles as input
- bgcnbd.PlotTrackingCum / mbgcnbd.PlotTrackingCum HOT 3
- Could not find mbgnbd.ConditionalExpectedTransactions HOT 3
- mbgcnbd.PlotTrackingInc legend parameter
- Python version HOT 2
- data.table.rdb is corrupt error on installing BTYDplus HOT 4
- can't use BTYDplus package(c++ function) HOT 4
- Why are hyper_priors all 0.001? HOT 1
- Use of table in xbgcnbd.PlotFrequencyInCalibration (and mcmc.PlotFrequencyInCalibration)
- mbg-cnbd-k: ConditionalExpectedTransactions - why length >= 100
- transactions / sales with zero value should be filtered out
- churn analysis in big data with BTYDplus HOT 3
- pggg.mcmc.DrawParameters returns failed scheduled cores HOT 1
- Question: How can I get mu and lambda for each customer in abe model?
- Working with large datasets
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btydplus.