Comments (8)
But if I install the dependencies from the terminal in RStudio, all is good:
terminal:
sudo apt install -y libproj-dev libv8-dev libjq-dev libprotobuf-dev protobuf-compiler
console:
> install.packages('geojsonio')
...
...
installing vignettes
** testing if installed package can be loaded
* DONE (geojsonio)
from incidence-mapper.
The most up-to-date build environment is in the connect-to-real-data branch: https://github.com/seattleflu/incidence-mapper/blob/connect-to-real-data/Dockerfile.RBuildEnv
from incidence-mapper.
I believe I've fixed some of these package issues on my PR #35. Someone should check that it also works for them.
from incidence-mapper.
@devclinton I rebuilt the image on our machine from trs/simplify-db-connection. Seems mostly good (and better than before). One issue is this line doesn't work
incidence-mapper/Dockerfile.RBuildEnv
Line 46 in d090214
from incidence-mapper.
@famulare Docker RUN
commands happen inside the container, so you need to first COPY
the install_local_packages.R
file into the container somewhere and then run it using its path inside the container.
from incidence-mapper.
(I didn't notice that failing for me, but it likely did!)
from incidence-mapper.
@devclinton I'll return this to your list, as I'm a little confused about copying in something that is at the same level as the dockerfile. Thanks!
incidence-mapper/Dockerfile.RBuildEnv
Line 56 in 9d31ed8
from incidence-mapper.
@tsibley For now I removed the running of install_local_packages.R on the building on the container.
This is more because of how the future workflow will actually execute. At the moment, the container is being used as a development environment but later the workflow will be more along the lines you provided where we need to build each package. For now, let's make that a script the user can execute from within the R environment after they start the environment.
Later, I envision a workflow like the following
-
Build the package building/training container. This will be used to create the packages in the form of tar.gz file for now. I am working to get a local CRAN server up or alternatively maybe later we could publish to the general CRAN servers.
-
From There we build 2 new containers
-
Training container with incidenceMapR will be installed. Most likely dbViewer as well. That container will then be used to train all the various iterations of the the models. Having a separate training container will be slightly lighter but is optional. The main thing I want to be able to do is begin to highly parallelize the training step and having it as a separate step makes that slightly easier. so as long as I can have a container that at runtime has the incidenceMapR available, I should be good.
-
The second container will then just install the modelServ package. This will act as the execution worker for the API server. Really, this layer should rarely change since it is just loading a model and then running it. I suspect the training containers will change the most. Also, we could re-use the build container later in development process as the training container as well.
-
from incidence-mapper.
Related Issues (20)
- make selectFromDB and smoothModel understand flu_shot = (yes,no, dontknow) HOT 1
- investigate priors in smoothModel by looking at posterior distributions of non-existent sites
- Census tract should be a string HOT 2
- adjust for age in latentField models HOT 1
- explore "health reporting areas" as human-readable shapenames that work across counties HOT 1
- add concept of flu_season and interactions with season
- Simulated data and real data workflow have diverged too far and that affects testing HOT 1
- docker-compose up for api-service may failed and exited w/ code 127 HOT 2
- DockerFile.RbuildEnv failed with: The command '/bin/sh -c Rscript -e "devtools::install_version('forecast', version = '8.9', repos = "http://cran.us.r-project.org")" && rm -rf /tmp/*' returned a non-zero code: 1 HOT 5
- Simplify dbViewR::selectfromDB.R lines 84-101 HOT 1
- HTTPS support for the web API HOT 10
- appendCatchmentModel should have a site-location interaction term
- Bug in expandDB: broken handling of nested geographies
- latentFieldModel needs to include CDC_ILI in modeled field if used
- introduce more specific model types in incidenceMapR
- likely bug in priors for spacetime component
- Docker image out of date? HOT 1
- Install local incidence-mapper R packages during docker build? HOT 1
- Specific user access
- Development Environment doesn't support multiple users
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 incidence-mapper.