Skip to content

Commit 06147e5

Browse files
authored
Merge pull request #79 from Appsilon/cran-resubmit
Cran resubmit
2 parents 2e66a1a + 397794b commit 06147e5

File tree

5 files changed

+23
-1
lines changed

5 files changed

+23
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Description:
1515
and is optimized for building complex, data-dense web interfaces.
1616
This package provides most components from the underlying library,
1717
as well as special wrappers for some components
18-
to make it easy to use them in R without writing JavaScript code.
18+
to make it easy to use them in 'R' without writing 'JavaScript' code.
1919
License: LGPL-3
2020
Encoding: UTF-8
2121
LazyData: true

R/runExample.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#'
66
#' @param example The name of the example to run, or `NULL` to retrieve the list of examples.
77
#' @param ... Additional arguments to pass to `shiny::runApp()`.
8+
#' @return This function normally does not return;
9+
#' interrupt R to stop the application (usually by pressing Ctrl+C or Esc).
810
#'
911
#' @export
1012
runExample <- function(example = NULL, ...) {

R/toaster.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Toaster <- R6::R6Class(
2222
#' @param toasterId Unique number - needed to use more than one toaster
2323
#' @param session Shiny session object
2424
#' @param ... Parameters passed to `Toaster` component
25+
#' @return A new `Toaster` instance.
2526
initialize = function(
2627
toasterId = incrementToasterId(),
2728
session = shiny::getDefaultReactiveDomain(),
@@ -36,6 +37,7 @@ Toaster <- R6::R6Class(
3637
#' corresponding to the provided key
3738
#' @param ... Parameters passed to `Toaster` component
3839
#' @param key A key of toast to be shown/dismissed
40+
#' @return Nothing. This method is called for side effects.
3941
show = function(..., key = NULL) {
4042
props <- list(...)
4143
private$session$sendCustomMessage(
@@ -48,6 +50,7 @@ Toaster <- R6::R6Class(
4850
},
4951

5052
#' @description Dismiss all toasts instantly
53+
#' @return Nothing. This method is called for side effects.
5154
clear = function() {
5255
private$session$sendCustomMessage(
5356
private$callName("clear"),
@@ -57,6 +60,7 @@ Toaster <- R6::R6Class(
5760

5861
#' @description Dismiss the given toast instantly
5962
#' @param key A key of toast to be shown/dismissed
63+
#' @return Nothing. This method is called for side effects.
6064
dismiss = function(key) {
6165
private$session$sendCustomMessage(
6266
private$callName("dismiss"),

man/Toaster.Rd

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/runExample.Rd

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)