-
Notifications
You must be signed in to change notification settings - Fork 0
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 #18 from getwilds/package-app-cleanup
Package app cleanup
- Loading branch information
Showing
28 changed files
with
197 additions
and
97 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
^\.Rproj\.user$ | ||
^data-raw$ | ||
^LICENSE\.md$ | ||
^\.github$ |
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 @@ | ||
*.html |
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,51 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
|
||
name: R-CMD-check.yaml | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
R-CMD-check: | ||
runs-on: ${{ matrix.config.os }} | ||
|
||
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- {os: macos-latest, r: 'release'} | ||
- {os: windows-latest, r: 'release'} | ||
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} | ||
- {os: ubuntu-latest, r: 'release'} | ||
- {os: ubuntu-latest, r: 'oldrel-1'} | ||
|
||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
R_KEEP_PKG_SOURCE: yes | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
http-user-agent: ${{ matrix.config.http-user-agent }} | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::rcmdcheck | ||
needs: check | ||
|
||
- uses: r-lib/actions/check-r-package@v2 | ||
with: | ||
upload-snapshots: true | ||
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' |
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,22 @@ | ||
#' A function that provides an example dataframe for testing. | ||
#' @param key A string used internally (in a specific shiny server module | ||
#' implementation) to indicate which data to return. | ||
#' @export | ||
#' @importFrom utils read.table | ||
#' @examples | ||
#' example_callback("county-incidence") | ||
#' | ||
example_callback <- function(key) { | ||
stopifnot(key %in% c("county-incidence", "contact-info")) | ||
|
||
if (key == "county-incidence") { | ||
utils::read.table( | ||
header = TRUE, | ||
system.file(file.path("test", "example-incidence.tsv"), package = "oncarto"), | ||
sep = "\t" | ||
) | ||
} else if (key == "contact-info") { | ||
oncarto_file("fh-contact-info.md") | ||
} | ||
} | ||
|
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,23 @@ | ||
#' Get the paths to files installed with oncarto | ||
#' | ||
#' This function allows you to quickly access files that are installed with | ||
#' oncarto. | ||
#' | ||
#' @param path The name of the file. If no argument is provided then | ||
#' all of the example files will be listed. | ||
#' | ||
#' @return A vector of file paths | ||
#' @export | ||
#' @examples | ||
#' oncarto_file() | ||
#' | ||
oncarto_file <- function(path = NULL){ | ||
if(is.null(path)) { | ||
list.files( | ||
system.file(c("app"), package = "oncarto"), | ||
full.names = TRUE) | ||
} else { | ||
system.file(c("app"), path, package = "oncarto", | ||
mustWork = TRUE) | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,34 +1,35 @@ | ||
## Oncarto | ||
# Oncarto | ||
|
||
<!-- badges: start --> | ||
|
||
[![Project Status: Prototype – Useable, some support, open to feedback, unstable API.](https://getwilds.org/badges/badges/prototype.svg)](https://getwilds.org/badges/#prototype) | ||
[![R-CMD-check](https://github.com/getwilds/oncarto/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/getwilds/oncarto/actions/workflows/R-CMD-check.yaml) | ||
<!-- badges: end --> | ||
|
||
Oncarto (Oncology Cartographer) is an R package / Shiny dashboard developed by the Fred Hutch Data Science Lab ([DaSL](https://hutchdatascience.org)) for the automated integration and visualization of publicly available cancer incidence data for the Fred Hutch Cancer Center catchment area. | ||
|
||
### Background | ||
Oncarto (Oncology Cartographer) is a flexible Shiny application, structured | ||
as an R package, for visualizing and communicating geospatial data related to | ||
cancer epidemiology. | ||
|
||
To be filled in | ||
|
||
### Installation | ||
## Installation | ||
|
||
You can install the development version of `oncarto` as follows: | ||
|
||
```{r} | ||
# To be filled in | ||
# install.packages("pak") | ||
pak::pak("getwilds/oncarto") | ||
``` | ||
|
||
### Example | ||
## Getting Started | ||
|
||
This is a basic example of how to... | ||
Get Oncarto running locally: | ||
|
||
```{r} | ||
library(oncarto) | ||
## basic example code | ||
``` | ||
### Contact | ||
|
||
This project is managed by the Fred Hutch Data Science Lab (DaSL)'s [Human-Computer Interaction](https://hutchdatascience.org/hci/) and [Translational Analytics](https://hutchdatascience.org/tr-analytics/) teams. You can read more about our group, mission, and other work on the DaSL [homepage](https://hutchdatascience.org). | ||
|
||
To report any bugs, submit patches, or request new features, please log an issue in our [issue tracker](https://github.com/getwilds/oncarto/issues/new). For direct inquiries, please send an email to DaSL Translational Analytics at [analytics\@fredhutch.org](mailto:[email protected]){.email}. | ||
run_app(title = "Oncarto (Oncology Cartographer)", | ||
logo_src = oncarto_file("fh-logo.png"), | ||
logo_href = "https://hutchdatascience.org", | ||
logo_width = "155px", | ||
logo_height = "35px", | ||
css = oncarto_file("fh.css"), | ||
callback = example_callback) | ||
``` |
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.