From 1c6786356ebeb1396960e0a8c7f60d4eb00f177c Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Wed, 20 Oct 2021 16:12:19 +0200 Subject: [PATCH 1/2] remove bpmnVisu package install and load (already explained) --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 321f4b7..06819d1 100644 --- a/README.md +++ b/README.md @@ -89,11 +89,10 @@ bpmnVisualization::display(bpmn_file, overlays) The following displays a BPMN diagram provided as an example by the package with an overlay on top of a BPMN element. ```r -# Install and load packages +# Install and load the shiny package install.packages("shiny") library(shiny) -devtools::install_github("process-analytics/bpmn-visualization-R") -library(bpmnVisualization) + displayBpmn <- function() { bpmn_file <- system.file("examples/Travel_Booking.bpmn", package = "bpmnVisualization") From df3f0fd6aa3a45eb61dbd40c5e511253b1c04fe1 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Wed, 20 Oct 2021 16:17:21 +0200 Subject: [PATCH 2/2] prefix all bpmnVisualization functions --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 06819d1..6906693 100644 --- a/README.md +++ b/README.md @@ -102,13 +102,13 @@ displayBpmn <- function() { ui <- shinyUI(fluidPage( titlePanel("Display bpmn diagrams with execution data"), - bpmnVisualizationOutput('bpmnContainer') + bpmnVisualization::bpmnVisualizationOutput('bpmnContainer') ) ) server = function(input, output) { # renderBpmnVisualization is the R bridge function to the html widgets - output$bpmnContainer <- renderBpmnVisualization({ displayBpmn() }) + output$bpmnContainer <- bpmnVisualization::renderBpmnVisualization({ displayBpmn() }) } shinyApp(ui, server)