nmfs-fish-tools / fishdictionary

A dictionary scheme for fisheries
https://connect.fisheries.noaa.gov/fishdictionary
GNU Affero General Public License v3.0
3 stars 1 forks source link

access R package documentation through a {shiny} app #25

Open kellijohnson-NOAA opened 2 years ago

kellijohnson-NOAA commented 2 years ago

Below are some stack exchange / blog posts about how to access .Rd files from an R package in a shiny server setting. This would be useful if we used .R and resulting .Rd files to document terms instead of json files.

ChristineStawitz-NOAA commented 2 years ago

Thanks @kellijohnson-NOAA I think I have a very basic and ugly version of this working - you can test it by running the following in a fresh R terminal:

remotes::install_github("nmfs-fish-tools/data_dictionary", ref="shiny_a 
    pp")
library(shiny)
library(stockassessmentdictionary)
shiny_dd()

One question: You can define your own fields with the format tag, but we could also try to adhere to the existing Roxygen2 tags instead of the fields we have made up and that would put the different fields under each item at the same level of the hierarchy - any preference?

I lost steam halfway through the alphabet but feel free to edit the later .R entries if anyone has time!

ChristineStawitz-NOAA commented 1 year ago