Skip to content

Commit 1db6bcd

Browse files
committed
Rename the package as bpmnVisualizationR
1 parent f23bf01 commit 1db6bcd

19 files changed

+133
-134
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing
22

3-
You are here to help on `bpmn-visualization-R`? Awesome, feel welcome and read the following guidelines in order to know how to contribute, to ask questions and to make `bpmn-visualization-R` such a great tool.
3+
You are here to help on `bpmnVisualizationR`? Awesome, feel welcome and read the following guidelines in order to know how to contribute, to ask questions and to make `bpmnVisualizationR` such a great tool.
44

55
All members of our community are expected to follow our [Code of Conduct](https://github.com/process-analytics/.github/blob/main/CODE_OF_CONDUCT.md). Please make sure you are welcoming and friendly in all of our spaces.
66

@@ -11,7 +11,7 @@ There are many ways to contribute:
1111
- help people with the questions they ask on the [GitHub Issues](https://github.com/process-analytics/bpmn-visualization-R/issues)
1212
- submitting bug reports and feature requests in the [GitHub Issues](https://github.com/process-analytics/bpmn-visualization-R/issues/new)
1313
- improving the README & documentation
14-
- writing code which can be incorporated into `bpmn-visualization-R` itself
14+
- writing code which can be incorporated into `bpmnVisualizationR` itself
1515

1616
### Code and documentation changes guidelines
1717

@@ -34,7 +34,7 @@ For all contributions, please respect the following guidelines:
3434

3535
### Fork & create a branch
3636

37-
[Fork bpmn-visualization-R](https://help.github.com/articles/fork-a-repo) and create a branch with a descriptive name.
37+
[Fork the bpmn-visualization-R repository](https://help.github.com/articles/fork-a-repo) and create a branch with a descriptive name.
3838

3939
A good branch name would be (where issue #25 is the ticket you're working on): **25-customize_overlays**
4040

@@ -51,8 +51,7 @@ The most important part is the title of the Pull Request, because:
5151

5252
### Open a Pull Request
5353

54-
At this point, you should switch back to your main branch and make sure it's up-to-date with `bpmn-visualization-R`
55-
`main` branch:
54+
At this point, you should switch back to your main branch and make sure it's up-to-date with the `main` branch of the `bpmn-visualization-R` repository:
5655

5756
```sh
5857
git remote add upstream git@github.com:process-analytics/bpmn-visualization-R.git
@@ -88,7 +87,7 @@ You only need to sign the CLA once or when the CLA terms have changed.
8887

8988
### Keeping your Pull Request updated
9089

91-
If a maintainer asks you to [rebase](http://git-scm.com/book/en/Git-Branching-Rebasing) your PR, they're saying that a lot of code has changed, and that you need to update your branch so it's easier to merge.
90+
If a maintainer asks you to [rebase](http://git-scm.com/book/en/Git-Branching-Rebasing) your PR, they're saying that a lot of code has changed, and that you need to update your branch, so it's easier to merge.
9291

9392
Here's the suggested workflow:
9493

DESCRIPTION

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
Package: bpmnVisualization
1+
Package: bpmnVisualizationR
22
Type: Package
33
Title: Visualize Process Execution Data on BPMN Diagrams
44
Version: 0.2.2.9000
55
Authors@R: c(person("Celine", "Souchet", role = c("aut", "cre"), email = "process.analytics.dev+CRAN@gmail.com"),
66
person("Thomas", "Bouffard", role = "aut"))
7-
Description: To visualize the execution data of the processes on BPMN (Business Process Model and Notation) diagrams, using overlays, style customization and interactions, with BPMN Visualization.
7+
Description: To visualize the execution data of the processes on BPMN (Business Process Model and Notation) diagrams, using overlays, style customization and interactions, with the bpmn-visualization TypeScript library.
88
License: Apache License (== 2)
99
Copyright: Bonitasoft S.A.
10-
URL: https://process-analytics.github.io/bpmn-visualization-R/, https://github.com/process-analytics/bpmn-visualization-R
10+
URL: https://process-analytics.github.io/bpmn-visualization-R, https://github.com/process-analytics/bpmn-visualization-R
1111
BugReports: https://github.com/process-analytics/bpmn-visualization-R/issues
1212
Encoding: UTF-8
1313
LazyData: true
14-
RoxygenNote: 7.2.1
14+
RoxygenNote: 7.2.3
1515
Imports:
1616
htmlwidgets,
1717
rlang,

MAINTAINERS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ It conforms to [the CRAN Submission policies first](https://cran.r-project.org/w
125125

126126
You can use this template:
127127

128-
> 📣 bpmn-visualization R package {version} is out! 🎉
128+
> 📣 bpmnVisualizationR {version} is out! 🎉
129129
>
130130
> ===> some short description here <===
131131
>
@@ -139,7 +139,7 @@ Channel: [news](https://discord.com/channels/1011911769607913562/102432915903349
139139

140140
You can use this template:
141141

142-
> 📣 bpmn-visualization R package {version} is out! 🎉
142+
> 📣 bpmnVisualizationR {version} is out! 🎉
143143
>
144144
> ===> some short description here <===
145145
>

NAMESPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Generated by roxygen2: do not edit by hand
22

3-
export(bpmnVisualizationOutput)
3+
export(bpmnVisualizationROutput)
44
export(create_overlay)
55
export(display)
6-
export(renderBpmnVisualization)
6+
export(renderBpmnVisualizationR)
77
import(htmlwidgets)
88
import(xml2)
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@
2727
#' generated one). Useful if you have other JavaScript that needs to explicitly
2828
#' discover and interact with a specific widget instance.
2929
#'
30-
#' @returns A \code{bpmn-visualization} Widget that will intelligently print itself into HTML in a variety of contexts
30+
#' @returns A \code{bpmnVisualizationR} Widget that will intelligently print itself into HTML in a variety of contexts
3131
#' including the R console, within R Markdown documents, and within Shiny output bindings.
3232
#'
3333
#' @examples
3434
#' # Load the BPMN file
35-
#' bpmn_file <- system.file("examples/Order_Management.bpmn", package = "bpmnVisualization")
35+
#' bpmn_file <- system.file("examples/Order_Management.bpmn", package = "bpmnVisualizationR")
3636
#'
3737
#' # Display the BPMN diagram
38-
#' bpmnVisualization::display(bpmn_file, width='auto', height='auto')
38+
#' bpmnVisualizationR::display(bpmn_file, width='auto', height='auto')
3939
#'
4040
#' # Display the BPMN diagram with overlays
4141
#' overlays <- list(
42-
#' create_overlay("start_event_1_1", "42"),
43-
#' create_overlay("sequence_flow_1_1", "42"),
44-
#' create_overlay("task_1_1", "9")
42+
#' bpmnVisualizationR::create_overlay("start_event_1_1", "42"),
43+
#' bpmnVisualizationR::create_overlay("sequence_flow_1_1", "42"),
44+
#' bpmnVisualizationR::create_overlay("task_1_1", "9")
4545
#' )
46-
#' bpmnVisualization::display(bpmn_file, overlays, width='auto', height='auto')
46+
#' bpmnVisualizationR::display(bpmn_file, overlays, width='auto', height='auto')
4747
#'
4848
#' @seealso \code{\link{create_overlay}} to create an overlay
4949
#'
@@ -64,58 +64,58 @@ display <- function(
6464
)
6565
# create widget
6666
htmlwidgets::createWidget(
67-
name = "bpmnVisualization",
67+
name = "bpmnVisualizationR",
6868
x,
6969
width = width,
7070
height = height,
71-
package = "bpmnVisualization",
71+
package = "bpmnVisualizationR",
7272
elementId = elementId
7373
)
7474
}
7575

76-
#' @title Shiny output binding for the \code{bpmn-visualization} HTML widget
76+
#' @title Shiny output binding for the \code{bpmnVisualizationR} HTML widget
7777
#'
78-
#' @name bpmnVisualization-shiny-output
78+
#' @name bpmnVisualizationR-shiny-output
7979
#' @description
80-
#' Helper to create output function for using the \code{bpmn-visualization} HTML widget within Shiny applications and interactive Rmd documents.
80+
#' Helper to create output function for using the \code{bpmnVisualizationR} HTML widget within Shiny applications and interactive Rmd documents.
8181
#'
8282
#' @param outputId output variable to read from
8383
#' @param width,height Must be a valid CSS unit (like \code{'100\%'},
8484
#' \code{'400px'}, \code{'auto'}) or a number, which will be coerced to a
8585
#' string and have \code{'px'} appended.
8686
#'
87-
#' @returns An output function that enables the use of the \code{bpmn-visualization} widget within Shiny applications.
87+
#' @returns An output function that enables the use of the \code{bpmnVisualizationR} widget within Shiny applications.
8888
#'
8989
#' @export
90-
bpmnVisualizationOutput <- function(
90+
bpmnVisualizationROutput <- function(
9191
outputId,
9292
width = "100%",
9393
height = "400px"
9494
) {
9595
htmlwidgets::shinyWidgetOutput(
9696
outputId,
97-
"bpmnVisualization",
97+
"bpmnVisualizationR",
9898
width,
9999
height,
100-
package = "bpmnVisualization"
100+
package = "bpmnVisualizationR"
101101
)
102102
}
103103

104-
#' @title Shiny render binding for the \code{bpmn-visualization} HTML widget
104+
#' @title Shiny render binding for the \code{bpmnVisualizationR} HTML widget
105105
#'
106-
#' @rdname bpmnVisualization-shiny-render
106+
#' @rdname bpmnVisualizationR-shiny-render
107107
#' @description
108-
#' Helper to create render function for using the \code{bpmn-visualization} HTML widget within Shiny applications and interactive Rmd documents.
108+
#' Helper to create render function for using the \code{bpmnVisualizationR} HTML widget within Shiny applications and interactive Rmd documents.
109109
#'
110-
#' @param expr An expression that generates a \code{bpmn-visualization} HTML widget
110+
#' @param expr An expression that generates a \code{bpmnVisualizationR} HTML widget
111111
#' @param env The environment in which to evaluate \code{expr}.
112112
#' @param quoted Is \code{expr} a quoted expression (with \code{quote()})? This
113113
#' is useful if you want to save an expression in a variable.
114114
#'
115-
#' @returns A render function that enables the use of the \code{bpmn-visualization} widget within Shiny applications.
115+
#' @returns A render function that enables the use of the \code{bpmnVisualizationR} widget within Shiny applications.
116116
#'
117117
#' @export
118-
renderBpmnVisualization <- function(
118+
renderBpmnVisualizationR <- function(
119119
expr,
120120
env = parent.frame(),
121121
quoted = FALSE
@@ -127,7 +127,7 @@ renderBpmnVisualization <- function(
127127
} # force quoted
128128
htmlwidgets::shinyRenderWidget(
129129
expr,
130-
bpmnVisualizationOutput,
130+
bpmnVisualizationROutput,
131131
env,
132132
quoted = TRUE
133133
)

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1 align="center">BPMN Visualization - R Package</h1>
1+
<h1 align="center">bpmnVisualizationR</h1>
22
<div align="center">
33
<p align="center"> <img title="Email Voting BPMN Diagram with overlays" src="doc/example_email_voting_with_overlays.svg" alt="Email Voting BPMN Diagram with overlays"></p>
44
<p align="center">
@@ -23,7 +23,7 @@
2323
<br>
2424

2525
<!-- duplicated with README.md -->
26-
`bpmnVisualization` is an R package for visualizing process execution data on BPMN diagrams, using overlays, style customization and interactions.
26+
`bpmnVisualizationR` is an R package for visualizing process execution data on BPMN diagrams, using overlays, style customization and interactions.
2727

2828
It is made possible by [htmlwidgets](http://www.htmlwidgets.org/), which provides an easy-to-use framework for bringing together R and the [bpmn-visualization](https://github.com/process-analytics/bpmn-visualization-js) TypeScript library.
2929
<!-- END OF duplicated with README.md -->
@@ -38,7 +38,7 @@ install.packages('devtools')
3838
```
3939

4040
<!-- duplicated with README.md -->
41-
#### Install _BPMN Visualization - R Package_ from GitHub
41+
#### Install _bpmnVisualizationR_ from GitHub
4242

4343
To install a dedicated version (available versions can be found in the [GitHub releases page](https://github.com/process-analytics/bpmn-visualization-R/releases)), run:
4444
```r
@@ -52,16 +52,16 @@ devtools::install_github("process-analytics/bpmn-visualization-R")
5252

5353
Then, make the library available to the current R project:
5454
```r
55-
library(bpmnVisualization)
55+
library(bpmnVisualizationR)
5656
```
5757
<!-- END OF duplicated with README.md -->
5858

5959
### Load the BPMN file
60-
`bpmnVisualization` accepts a BPMN file (or an XML document):
60+
`bpmnVisualizationR` accepts a BPMN file (or an XML document):
6161

6262
```r
6363
# File from the package
64-
bpmn_file <- system.file("examples/Email_Voting.bpmn", package = "bpmnVisualization")
64+
bpmn_file <- system.file("examples/Email_Voting.bpmn", package = "bpmnVisualizationR")
6565
```
6666

6767
Or
@@ -89,16 +89,16 @@ They are taken from the [BPMN 2.0 examples non-normative machine readable files]
8989

9090
### Display the BPMN diagram
9191
```r
92-
bpmnVisualization::display(bpmn_file)
92+
bpmnVisualizationR::display(bpmn_file)
9393
```
9494

9595

9696
### Display the BPMN diagram with overlays
9797

9898
```r
99-
overlays <- list(bpmnVisualization::create_overlay("bpmn_element_id_1", "42"),
100-
bpmnVisualization::create_overlay("bpmn_element_id_2", "9"))
101-
bpmnVisualization::display(bpmn_file, overlays)
99+
overlays <- list(bpmnVisualizationR::create_overlay("bpmn_element_id_1", "42"),
100+
bpmnVisualizationR::create_overlay("bpmn_element_id_2", "9"))
101+
bpmnVisualizationR::display(bpmn_file, overlays)
102102
```
103103

104104

@@ -113,28 +113,28 @@ library(shiny)
113113

114114

115115
displayBpmn <- function() {
116-
bpmn_file <- system.file("examples/Travel_Booking.bpmn", package = "bpmnVisualization")
117-
overlays <- list(bpmnVisualization::create_overlay("_6-203", "9"))
118-
bpmnVisualization::display(bpmn_file, overlays)
116+
bpmn_file <- system.file("examples/Travel_Booking.bpmn", package = "bpmnVisualizationR")
117+
overlays <- list(bpmnVisualizationR::create_overlay("_6-203", "9"))
118+
bpmnVisualizationR::display(bpmn_file, overlays)
119119
}
120120

121121
ui <- shinyUI(fluidPage(
122122
titlePanel("Display bpmn diagrams with execution data"),
123-
bpmnVisualization::bpmnVisualizationOutput('bpmnContainer')
123+
bpmnVisualizationR::bpmnVisualizationROutput('bpmnContainer')
124124
)
125125
)
126126

127127
server = function(input, output) {
128128
# renderBpmnVisualization is the R bridge function to the html widgets
129-
output$bpmnContainer <- bpmnVisualization::renderBpmnVisualization({ displayBpmn() })
129+
output$bpmnContainer <- bpmnVisualizationR::renderBpmnVisualizationR({ displayBpmn() })
130130
}
131131

132132
shinyApp(ui, server)
133133
```
134134

135135
## 🔧 Contributing
136136

137-
To contribute to `bpmn-visualization-R`, fork and clone this repository locally and commit your code on a separate branch. \
137+
To contribute to `bpmnVisualizationR`, fork and clone this repository locally and commit your code on a separate branch. \
138138
Please write tests for your code before opening a pull-request.
139139

140140
You can find more detail in our [Contributing guide](CONTRIBUTING.md). Participation in this open source project is subject to a [Code of Conduct](CODE_OF_CONDUCT.md).
@@ -143,5 +143,5 @@ You can find more detail in our [Contributing guide](CONTRIBUTING.md). Participa
143143

144144
## 📃 License
145145

146-
`bpmn-visualization-R` is released under the [Apache 2.0](LICENSE) license. \
146+
`bpmnVisualizationR` is released under the [Apache 2.0](LICENSE) license. \
147147
Copyright &copy; from 2021, Bonitasoft S.A.

index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!-- This page is processed by pkgdown to create the home page of the HTML documentation -->
22

3-
# BPMN Visualization - R Package
3+
# bpmnVisualizationR
44

55
<!-- badges: start -->
66
[![R-CMD-check](https://github.com/process-analytics/bpmn-visualization-R/workflows/R-CMD-check/badge.svg)](https://github.com/process-analytics/bpmn-visualization-R/actions/workflows/R-CMD-check.yaml)
77
<!-- badges: end -->
88

99

1010
<!-- duplicated with README.md -->
11-
`bpmnVisualization` is an R package for visualizing process execution data on BPMN diagrams, using overlays, style customization and interactions.
11+
`bpmnVisualizationR` is an R package for visualizing process execution data on BPMN diagrams, using overlays, style customization and interactions.
1212

1313
It is made possible by [htmlwidgets](http://www.htmlwidgets.org/), which provides an easy-to-use framework for bringing together R and the [bpmn-visualization](https://github.com/process-analytics/bpmn-visualization-js) TypeScript library.
1414
<!-- END OF duplicated with README.md -->
@@ -29,7 +29,7 @@ devtools::install_github("process-analytics/bpmn-visualization-R")
2929

3030
Then, make the library available to the current R project:
3131
```r
32-
library(bpmnVisualization)
32+
library(bpmnVisualizationR)
3333
```
3434
<!-- END OF duplicated with README.md -->
3535

@@ -40,7 +40,7 @@ You first need to retrieve the content of the BPMN diagram. Once you are done, y
4040
that will render it.
4141

4242
```r
43-
bpmnVisualization::display(bpmn_content)
43+
bpmnVisualizationR::display(bpmn_content)
4444
```
4545

4646
Read `?display` for more details.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
*/
1616

1717
HTMLWidgets.widget({
18-
name: "bpmnVisualization",
18+
name: "bpmnVisualizationR",
1919
type: "output",
2020

2121
factory: function(containerElt, width, height) {

0 commit comments

Comments
 (0)