diff --git a/R/rhtmlPictographs.R b/R/rhtmlPictographs.R index 1770349..a13c332 100644 --- a/R/rhtmlPictographs.R +++ b/R/rhtmlPictographs.R @@ -4,6 +4,8 @@ #' #' The usage documentation is maintained as a self hosted tutorial. For instructions on how to run and view this tutorial see the project readme : https://github.com/Displayr/rhtmlPictographs #' +#' @param settingsJsonString A JSON that contains the settings +#' #' @examples #' #' # red circle @@ -21,8 +23,6 @@ #' @import htmlwidgets #' #' @export -#' - graphic <- function(settingsJsonString = '{}') { g <- htmlwidgets::createWidget( name = 'rhtmlPictographs', diff --git a/man/graphic.Rd b/man/graphic.Rd index 4b82774..6f1cea9 100644 --- a/man/graphic.Rd +++ b/man/graphic.Rd @@ -9,6 +9,9 @@ https://github.com/Displayr/rhtmlPictographs \usage{ graphic(settingsJsonString = "{}") } +\arguments{ +\item{settingsJsonString}{A JSON that contains the settings} +} \description{ A HTMLWidget that can generate single image graphics, mutli image graphics, or a table of single/multi image graphics. See scenarios and examples below for different use cases. diff --git a/theSrc/R/htmlwidget.R b/theSrc/R/htmlwidget.R index 1770349..a13c332 100644 --- a/theSrc/R/htmlwidget.R +++ b/theSrc/R/htmlwidget.R @@ -4,6 +4,8 @@ #' #' The usage documentation is maintained as a self hosted tutorial. For instructions on how to run and view this tutorial see the project readme : https://github.com/Displayr/rhtmlPictographs #' +#' @param settingsJsonString A JSON that contains the settings +#' #' @examples #' #' # red circle @@ -21,8 +23,6 @@ #' @import htmlwidgets #' #' @export -#' - graphic <- function(settingsJsonString = '{}') { g <- htmlwidgets::createWidget( name = 'rhtmlPictographs',