Skip to content

Commit

Permalink
Merge pull request #3 from MindTheGap-ERC/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
NiklasHohmann committed Mar 6, 2024
2 parents 06806b7 + f12c0e8 commit 5299585
Show file tree
Hide file tree
Showing 8 changed files with 1,669 additions and 23 deletions.
1 change: 1 addition & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source("renv/activate.R")
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
15 changes: 15 additions & 0 deletions .github/workflows/fair-software.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: fair-software

on: push

jobs:
verify:
name: "fair-software"
runs-on: ubuntu-latest
steps:
- uses: fair-software/howfairis-github-action@0.2.1
name: Measure compliance with fair-software.eu recommendations
env:
PYCHARM_HOSTED: "Trick colorama into displaying colored output"
with:
MY_REPO_URL: "https://github.com/${{ github.repository }}"
43 changes: 20 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# The Shellbed Condensator

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7740309.svg)](https://doi.org/10.5281/zenodo.7740309)
[![fair-software.eu](https://img.shields.io/badge/fair--software.eu-%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8B%20%20%E2%97%8F%20%20%E2%97%8B-orange)](https://fair-software.eu)

Shiny app to visualize the effects of changing sedimentation rates on formation of fossil accumulations.

## Authors
Expand All @@ -16,55 +19,49 @@ email: e.b.jarochowska [at] uu.nl
Web page: [www.uu.nl/staff/EBJarochowska](https://www.uu.nl/staff/EBJarochowska)
ORCID: [0000-0001-8937-9405](https://orcid.org/0000-0001-8937-9405)

## License

Apache 2.0, see LICENSE file for details

## Requirements

R version 3.0.2 or higher
R package "shiny"
R (version >= 3.0.2), RStudio IDE.

## Offline Usage
## Online Usage

First, make sure that your working directory is set correctly. If you are using RStudio, go to _File -> Open Project_, then navigate to the ShellbedCondensator folder and open the ShellbedCondensator Rproject file (file ending _.Rproj_)
If you are not using RStudio, set your working directory _"DIR"_ to where the file _"app.R"_ is located using
The app can be used online at [stratigraphicpaleobiology.shinyapps.io/shellbed_condensator](https://stratigraphicpaleobiology.shinyapps.io/shellbed_condensator/). Online usage does not require an installation of R.

``` R
setwd("DIR")
```
## Offline Usage

Second, make sure the _shiny_ package is installed and loaded by running the following in R:
Open the file _ShellbedCondensator.Rproj_ in the RStudio IDE. This will open the RProject, and install the `renv` package (if not already installed). Then run

``` R
if (!require("shiny", quietly = TRUE)) {
install.packages("shiny")
}
```R
renv::restore()
```

Now you can start the app using the command
in the console to install all dependencies required for the app. To run the app, use

``` R
```R
shiny::runApp()
```

## Online Usage

The app can be used online at [stratigraphicpaleobiology.shinyapps.io/shellbed_condensator](https://stratigraphicpaleobiology.shinyapps.io/shellbed_condensator/). Online usage does not require an installation of R.

## Repository structure

- _LICENSE.md_ : Apache 2.0 license text
- _README.md_ : Readme file
- _CITATION.cff_ : Citation info
- _app.R_ : R code to start app. Contains app architecture
- _renv.lock_ : lockfile for `renv` package
- _zenodo.json_ : Zenodo metadata
- _renv_ : folder for `renv` package
- _src_ : Folder for code
- _condensator.R_ : Generates model outputs from user input
- _condensator_plot.R_ : Generates plots from model outputs
- _www_ : Folder with pictures used in the app
- _people_ : Folder with pictures of authors
- _logos_ : Folder with logos
- _geology_ : Folder with pictures of shell accumulations and stratigraphic columns
- _.github_ : GitHub actions

## License

Apache 2.0, see LICENSE file for details

## Citation

Expand Down
Loading

0 comments on commit 5299585

Please sign in to comment.