Skip to content

Commit

Permalink
Fix htmlwidgets
Browse files Browse the repository at this point in the history
  • Loading branch information
gertjanssenswillen committed Aug 30, 2024
1 parent 94406e4 commit d9c5c6c
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: processmapR
Type: Package
Title: Construct Process Maps Using Event Data
Version: 0.5.3
Version: 0.5.5
Authors@R: c(person("Gert","Janssenswillen",email = "[email protected]", role = c("aut","cre")),
person("Gerard","van Hulzen", email = "[email protected]", role = c("ctb")),
person("Benoît","Depaire",email = "[email protected]", role = c("ctb")),
Expand Down
4 changes: 2 additions & 2 deletions R/dotted_chart.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#' @param units [`character`] (default `"auto"`): Time units to use on the x-axis in case of relative time: `"auto"`
#' (default, see **Details**), `"secs"`, `"mins"`, `"hours"`, `"days"`, or `"weeks"`.
#' @param add_end_events [`logical`] (default `FALSE`): Whether to add dots for the complete lifecycle event with a different shape.
#' @param scale_color [`ggplot2`] scale function (default [`scale_color_discrete_bupaR`][`bupaR::scale_color_discrete_bupaR`]):
#' @param scale_color `ggplot2` scale function (default [`scale_color_discrete_bupaR`][`bupaR::scale_color_discrete_bupaR`]):
#' Set color scale. Defaults to [`scale_color_discrete_bupaR`][`bupaR::scale_color_discrete_bupaR`]. Replaced with [`scale_color_discrete`][`ggplot2::scale_color_discrete`] when more than 26 activities are present.
#' @param plotly [`logical`] (default `FALSE`): Return a [`plotly`] object, instead of a [`ggplot2`].
#' @param plotly [`logical`] (default `FALSE`): Return a `plotly` object, instead of a `ggplot2`.
#' @param eventlog `r lifecycle::badge("deprecated")`; please use `log` instead.
#'
#' @details
Expand Down
4 changes: 2 additions & 2 deletions R/render_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ render_map <- function(map,
))

htmlwidgets::createWidget(elementId = NULL,
name = "processanimateR",
name = "processmapR",
x = x,
width = NULL, height = NULL,
sizingPolicy = htmlwidgets::sizingPolicy(
Expand All @@ -118,5 +118,5 @@ render_map <- function(map,
script = c("viz.js",
"full.render.js"),
all_files = FALSE,
package = "processanimateR")))
package = "processmapR")))
}
2 changes: 1 addition & 1 deletion R/trace_explorer.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' @param abbreviate [`logical`] (default `TRUE`): If `TRUE`, abbreviate activity labels.
#' @param show_labels [`logical`] (default `TRUE`): If `FALSE`, activity labels are not shown.
#' @param label_size [`numeric`] (default `3`): Font size of labels.
#' @param scale_fill [`ggplot2`] scale function (default [`scale_fill_discrete_bupaR`][`bupaR::scale_fill_discrete_bupaR`]):
#' @param scale_fill `ggplot2` scale function (default [`scale_fill_discrete_bupaR`][`bupaR::scale_fill_discrete_bupaR`]):
#' Set color scale. Defaults to [`scale_fill_discrete_bupaR`][`bupaR::scale_fill_discrete_bupaR`]. Replaced with [`scale_fill_discrete`][`ggplot2::scale_fill_discrete`] when more than 26 activities are present.
#' @param raw_data [`logical`] (default `FALSE`): Return raw data instead of graph.
#'
Expand Down
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ options(tibble.print_min = 5, tibble.print_max = 5)

<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/processmapR)](https://CRAN.R-project.org/package=processmapR)
[![GitHub version](https://img.shields.io/badge/GitHub-0.5.2-blue)](https://github.com/bupaverse/processmapR)
[![GitHub version](https://img.shields.io/badge/GitHub-0.5.4-blue)](https://github.com/bupaverse/processmapR)
[![R-CMD-check](https://github.com/bupaverse/processmapR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/bupaverse/processmapR/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/bupaverse/processmapR/branch/master/graph/badge.svg)](https://app.codecov.io/gh/bupaverse/processmapR?branch=master)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
Expand Down Expand Up @@ -58,7 +58,7 @@ patients %>%
process_map()
```

```{r echo = FALSE}
```{r echo = FALSE, eval = F}
patients %>%
process_map() %>%
DiagrammeRsvg::export_svg() %>%
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![CRAN
status](https://www.r-pkg.org/badges/version/processmapR)](https://CRAN.R-project.org/package=processmapR)
[![GitHub
version](https://img.shields.io/badge/GitHub-0.5.2-blue)](https://github.com/bupaverse/processmapR)
version](https://img.shields.io/badge/GitHub-0.5.4-blue)](https://github.com/bupaverse/processmapR)
[![R-CMD-check](https://github.com/bupaverse/processmapR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/bupaverse/processmapR/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/bupaverse/processmapR/branch/master/graph/badge.svg)](https://app.codecov.io/gh/bupaverse/processmapR?branch=master)
[![Lifecycle:
Expand Down Expand Up @@ -66,7 +66,10 @@ patients %>%
#> PhantomJS not found. You can install it with webshot::install_phantomjs(). If it is installed, please make sure the phantomjs executable can be found via the PATH variable.
```

![process map](man/figures/README-example1-1.png)
<figure>
<img src="man/figures/README-example1-1.png" alt="process map" />
<figcaption aria-hidden="true">process map</figcaption>
</figure>

``` r
# Dotted chart
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
processanimateR 1.0.3
processmapR 1.0.3
Copyright (c) 2019 Felix Mannhardt
Licensed under MIT license
*/
HTMLWidgets.widget({

name: "processanimateR",
name: "processmapR",
type: "output",

factory: function(el, width, height) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dependencies:
- name: processanimater-libs
- name: processmapR-libs
version: 1.0.3
src: "htmlwidgets/lib/modules"
script:
Expand Down
4 changes: 2 additions & 2 deletions man/dotted_chart.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/lined_chart.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/trace_explorer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d9c5c6c

Please sign in to comment.