taylor-lab / facets-preview

Load, review and adjust facets fits
8 stars 3 forks source link

facets-preview shiny app execution on linux #15

Open anoronh4 opened 4 years ago

anoronh4 commented 4 years ago

we were hoping to containerize this facets preview in our docker that has the base rocker/tidyverse (has a number of R packages pre-installed), however we are having difficulties based on the fact that shiny app was developed specifically for mac. for example: https://github.com/taylor-lab/facets-preview/blob/0d89717a22bb97f12767fe0ecc5ce77817098765/inst/application/server.R#L73

stat -f%c <file> works only on mac. i would suggest that there be linux alternatives so that the linux equivalent stat -c%Y <file> executes when the OS is linux. Sys.info()['sysname'] can be executed to determine the os name, alternatively OS can be indicated as a parameter in the config file.

i'd be happy to make the PR myself pending your thoughts.