Skip to content

Commit

Permalink
fix: examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Nov 10, 2021
1 parent 447dd75 commit a17ce74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/attributes.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ cleanAttrName <- function(col) {
#' @examples
#' upsetjs() %>%
#' fromList(list(a = c(1, 2, 3), b = c(2, 3))) %>%
#' setAttributes(list(attr = runif(3), cat = as.factor(sample(c("male", "female"), 3, replace = TRUE))))
#' setAttributes(list(attr = runif(3),
#' cat = as.factor(sample(c("male", "female"), 3, replace = TRUE))))
#' @export
setAttributes <- function(upsetjs, attrs = list()) {
checkUpSetCommonArgument(upsetjs)
Expand Down
2 changes: 1 addition & 1 deletion R/dash.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' @param height upestjs height
#' @return the set object
#' @examples
#' upestjsDash("u") %>% fromList(list(a = c(1, 2, 3), b = c(2, 3)))
#' upsetjsDash("u") %>% fromList(list(a = c(1, 2, 3), b = c(2, 3)))
#' @export
upsetjsDash <- function(children = NULL, id = NULL, width = NULL, height = NULL) {
props <- list(
Expand Down
3 changes: 2 additions & 1 deletion R/upsetjs.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
#' @param ... all other arguments supplied to \code{htmlwidgets::\link[htmlwidgets]{sizingPolicy}}
#' @return An \code{htmlwidgets::sizingPolicy} object
#' @examples
#' upsetjs(sizingPolicy = upsetjsSizingPolicy(padding = 20)) %>% fromList(list(a = c(1, 2, 3), b = c(2, 3)))
#' upsetjs(sizingPolicy = upsetjsSizingPolicy(padding = 20)) %>%
#' fromList(list(a = c(1, 2, 3), b = c(2, 3)))
#' @importFrom htmlwidgets sizingPolicy
#'
#' @export
Expand Down

0 comments on commit a17ce74

Please sign in to comment.