Skip to content

Commit

Permalink
update package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Chantel Wetzel committed Oct 13, 2023
1 parent b966298 commit 8f8457a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions inst/Shiny/server.r
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Define server logic required to draw a histogram ----
server <- function(input, output, session) {
require(jsonlite)
library(stockassessmentdictionary)
library(fishdictionary)
require(ggplot2)
require(shiny)

Expand All @@ -10,7 +10,7 @@ server <- function(input, output, session) {
unlink(tmp) })

rd_database <- reactive({
tools::Rd_db(package = "stockassessmentdictionary")
tools::Rd_db(package = "fishdictionary")
})

output$choose_topic <- renderUI({
Expand All @@ -22,11 +22,11 @@ server <- function(input, output, session) {
rdfile <- paste0(input$Term, ".Rd")
req(rdfile %in% names(rd_database()))
tools::Rd2HTML(rd_database()[[rdfile]], tmp,
package = "stockassessmentdictionary")
package = "fishdictionary")
htmltools::includeHTML(tmp)})

output$foodweb <- renderPlot({
mvbutils::foodweb(where = "package:stockassessmentdictionary",
mvbutils::foodweb(where = "package:fishdictionary",
prune = input$Term)
})
}
2 changes: 1 addition & 1 deletion inst/Shiny/ui.r
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require(shiny)
require(stockassessmentdictionary)
require(fishdictionary)
ui <- fluidPage(
# includeCSS("extra.css"),
includeCSS("nmfs-styles.css"),
Expand Down

0 comments on commit 8f8457a

Please sign in to comment.