Skip to content

Commit

Permalink
Add inst/extdata to docker image
Browse files Browse the repository at this point in the history
This is a fix related to [Issue 7](#7)
  • Loading branch information
johnsonra committed Dec 6, 2022
1 parent 7bdaf70 commit 0a1f4a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ RUN R -e 'install.packages(\
repos="https://packagemanager.rstudio.com/all/2022-11-08+Y3JhbiwyOjQ1MjYyMTU7NDcyMTMxRQ")'

# copy R package to image
RUN mkdir JoesFlow JoesFlow/man JoesFlow/R
RUN mkdir JoesFlow JoesFlow/man JoesFlow/R JoesFlow/inst
COPY DESCRIPTION LICENSE NAMESPACE JoesFlow/.
COPY R/* JoesFlow/R/.
COPY man/* JoesFlow/man/.
COPY inst/extdata/* JoesFlow/inst/.

# install JoesFlow
RUN mkdir /srv/shiny-server/JoesFlow
Expand Down
2 changes: 1 addition & 1 deletion R/app_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ app_server <- function(input, output, session) {
if (is.null(inFile))
return(NULL)

# check file encoding for odd characters (don't do this for flow files, as they tend to be very big)
# check file encoding for odd characters (don't do this for flow files, as they tend to be very big and pretty much all numeric)
enc <- stringi::stri_read_raw(inFile$datapath) %>%
stringi::stri_enc_detect()

Expand Down

0 comments on commit 0a1f4a1

Please sign in to comment.