This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from HJMcSorley/master
app fork to master
- Loading branch information
Showing
6 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM plotly/heroku-docker-r:3.6.2_heroku18 | ||
|
||
# on build, copy application files | ||
COPY . /app/ | ||
|
||
# for installing additional dependencies etc. | ||
RUN if [ -f '/app/onbuild' ]; then bash /app/onbuild; fi; | ||
|
||
# look for /app/apt-packages and if it exists, install the packages contained | ||
RUN if [ -f '/app/apt-packages' ]; then apt-get update -q && cat apt-packages | xargs apt-get -qy install && rm -rf /var/lib/apt/lists/*; fi; | ||
|
||
# look for /app/init.R and if it exists, execute it | ||
RUN if [ -f '/app/init.R' ]; then /usr/bin/R --no-init-file --no-save --quiet --slave -f /app/init.R; fi; | ||
|
||
# here app.R needs to match the name of the file which contains your app | ||
CMD cd /app && /usr/bin/R --no-save -f /app/app.R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "Testing deployment of DashR app to heroku", | ||
"description": "This app shows 1994 census data, in a 2020 kind of way.", | ||
"keywords": [ | ||
"heroku", | ||
"R deployment", | ||
"Dash R" | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
libcurl4-openssl-dev | ||
libxml2-dev | ||
libv8-3.14-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
build: | ||
docker: | ||
web: Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# R script to run author supplied code, typically used to install additional R packages | ||
# contains placeholders which are inserted by the compile script | ||
# NOTE: this script is executed in the chroot context; check paths! | ||
|
||
r <- getOption('repos') | ||
r['CRAN'] <- 'http://cloud.r-project.org' | ||
options(repos=r) | ||
|
||
# ====================================================================== | ||
|
||
# packages go here | ||
install.packages('remotes') | ||
|
||
remotes::install_github('plotly/dashR', upgrade=TRUE) | ||
install.packages('dashCoreComponents') | ||
install.packages('dashHtmlComponents') | ||
install.packages('dashTable') | ||
install.packages('here') | ||
install.packages('tidyverse') | ||
install.packages('glue') | ||
install.packages('ggpubr') | ||
install.packages('scales') | ||
install.packages('plotly') |