Skip to content

Commit b28e138

Browse files
fix mobx example with is.interactive()
1 parent 7c64654 commit b28e138

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

R/dependencies.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ html_dependency_reacttools <- function(){
9999
#' @export
100100
#'
101101
#' @examples
102+
#' if(interactive()) {
103+
#'
102104
#' library(htmltools)
103105
#' library(reactR)
104106
#'
@@ -120,6 +122,7 @@ html_dependency_reacttools <- function(){
120122
#' ))
121123
#' )
122124
#' )
125+
#' }
123126
#'
124127
#' \dontrun{
125128
#' # use with react

man/html_dependency_mobx.Rd

Lines changed: 3 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)