Skip to content

Commit

Permalink
Updated contents at 20231004-223927
Browse files Browse the repository at this point in the history
  • Loading branch information
gh_action committed Oct 4, 2023
1 parent a6031d2 commit 0ee05c7
Show file tree
Hide file tree
Showing 408 changed files with 169,839 additions and 551 deletions.
46 changes: 46 additions & 0 deletions 2310-canvas/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# DOCKER FILE FOR WORKSHOP-R
# 2023 Roy Francis

FROM rocker/verse:4.2.3
LABEL Description="Docker image for NBIS workshop-r"
LABEL Maintainer="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/NBISweden/workshop-r"

RUN apt-get update -y \
&& apt-get install --no-install-recommends -y \
libxml2-dev \
libssl-dev \
libcurl4-openssl-dev \
libudunits2-dev \
libopenblas-base \
libgdal-dev \
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& apt-get install -y ./google-chrome-stable_current_amd64.deb \
&& rm -rf google-chrome-stable_current_amd64.deb \
&& rm -rf /var/lib/apt/lists/* \
&& Rscript -e 'install.packages(c("bookdown","knitr","remotes","fontawesome","formattable","formatR","kableExtra","leaflet","pagedown","lubridate","markdown","rmarkdown","xaringan","yaml"),repos = "https://packagemanager.posit.co/cran/__linux__/jammy/latest");' \
&& mkdir /rmd

RUN Rscript -e 'install.packages(c("tidyverse","nycflights13","vcd","patchwork","vioplot"),repos = "https://packagemanager.posit.co/cran/__linux__/jammy/latest");'
RUN Rscript -e 'remotes::install_github("mkierczak/mkteachr");'
WORKDIR /rmd
CMD Rscript -e "rmarkdown::render_site()"




# build container
# docker build -t ghcr.io/nbisweden/workshop-r:1.0.0 .
# docker tag ghcr.io/nbisweden/workshop-r:1.0.0 ghcr.io/nbisweden/workshop-r:latest

# push to ghcr
# docker login ghcr.io
# docker push ghcr.io/nbisweden/workshop-r:1.0.0
# docker push ghcr.io/nbisweden/workshop-r:latest

# run container
# render all files
# docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/rmd ghcr.io/nbisweden/workshop-r:latest
# render one file
# docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/rmd ghcr.io/nbisweden/workshop-r:latest Rscript -e 'rmarkdown::render("index.Rmd")'

4 changes: 2 additions & 2 deletions 2310-canvas/home_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@
<p><br></p>
<div id="location" class="section level2">
<h2>Location</h2>
<div id="htmlwidget-0b678f8d938f6d6b5669" style="width:auto;height:450px;" class="leaflet html-widget "></div>
<script type="application/json" data-for="htmlwidget-0b678f8d938f6d6b5669">{"x":{"options":{"crs":{"crsClass":"L.CRS.EPSG3857","code":null,"proj4def":null,"projectedBounds":null,"options":{}}},"calls":[{"method":"addTiles","args":["http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",null,null,{"minZoom":0,"maxZoom":18,"tileSize":256,"subdomains":"abc","errorTileUrl":"","tms":false,"noWrap":false,"zoomOffset":0,"zoomReverse":false,"opacity":1,"zIndex":1,"detectRetina":false}]},{"method":"addMarkers","args":[59.841949,17.637073,null,null,null,{"interactive":true,"draggable":false,"keyboard":true,"title":"","alt":"","zIndexOffset":0,"opacity":1,"riseOnHover":false,"riseOffset":250},"<b>SciLifeLab<\/b><br>Entrance C11<br>Biomedicinskt centrum<br>Uppsala University<br>Husargatan 3<br>75237 Uppsala<br>Sweden",null,null,null,null,{"interactive":false,"permanent":false,"direction":"auto","opacity":1,"offset":[0,0],"textsize":"10px","textOnly":false,"className":"","sticky":true},null]}],"limits":{"lat":[59.841949,59.841949],"lng":[17.637073,17.637073]},"setView":[[59.841949,17.637073],15,[]]},"evals":[],"jsHooks":[]}</script>
<div id="htmlwidget-4d1028c294a48f0696e4" style="width:auto;height:450px;" class="leaflet html-widget "></div>
<script type="application/json" data-for="htmlwidget-4d1028c294a48f0696e4">{"x":{"options":{"crs":{"crsClass":"L.CRS.EPSG3857","code":null,"proj4def":null,"projectedBounds":null,"options":{}}},"calls":[{"method":"addTiles","args":["http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",null,null,{"minZoom":0,"maxZoom":18,"tileSize":256,"subdomains":"abc","errorTileUrl":"","tms":false,"noWrap":false,"zoomOffset":0,"zoomReverse":false,"opacity":1,"zIndex":1,"detectRetina":false}]},{"method":"addMarkers","args":[59.841949,17.637073,null,null,null,{"interactive":true,"draggable":false,"keyboard":true,"title":"","alt":"","zIndexOffset":0,"opacity":1,"riseOnHover":false,"riseOffset":250},"<b>SciLifeLab<\/b><br>Entrance C11<br>Biomedicinskt centrum<br>Uppsala University<br>Husargatan 3<br>75237 Uppsala<br>Sweden",null,null,null,null,{"interactive":false,"permanent":false,"direction":"auto","opacity":1,"offset":[0,0],"textsize":"10px","textOnly":false,"className":"","sticky":true},null]}],"limits":{"lat":[59.841949,59.841949],"lng":[17.637073,17.637073]},"setView":[[59.841949,17.637073],15,[]]},"evals":[],"jsHooks":[]}</script>
</div>
<div id="travel-info" class="section level2">
<h2>Travel info</h2>
Expand Down
2 changes: 1 addition & 1 deletion 2310-canvas/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ <h1>R Programming Foundations for Life Scientist</h1>
<hr />
<div class="landing-update">
<p class="small" style="color:#bdbdbd;">
Last updated on <svg aria-hidden="true" role="img" viewBox="0 0 448 512" style="height:1em;width:0.88em;vertical-align:-0.125em;margin-left:auto;margin-right:auto;font-size:inherit;fill:#bdbdbd;overflow:visible;position:relative;"><path d="M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"/></svg> 04-Oct-2023 at <svg aria-hidden="true" role="img" viewBox="0 0 512 512" style="height:1em;width:1em;vertical-align:-0.125em;margin-left:auto;margin-right:auto;font-size:inherit;fill:#bdbdbd;overflow:visible;position:relative;"><path d="M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/></svg> 08:17:06 PM .
Last updated on <svg aria-hidden="true" role="img" viewBox="0 0 448 512" style="height:1em;width:0.88em;vertical-align:-0.125em;margin-left:auto;margin-right:auto;font-size:inherit;fill:#bdbdbd;overflow:visible;position:relative;"><path d="M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"/></svg> 04-Oct-2023 at <svg aria-hidden="true" role="img" viewBox="0 0 512 512" style="height:1em;width:1em;vertical-align:-0.125em;margin-left:auto;margin-right:auto;font-size:inherit;fill:#bdbdbd;overflow:visible;position:relative;"><path d="M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/></svg> 08:37:12 PM .
</p>
</div>
</div>
Expand Down
Loading

0 comments on commit 0ee05c7

Please sign in to comment.