Skip to content

Commit a3fab75

Browse files
committed
modify the example of summarize_oolong, yet another CRAN submission
1 parent 3ee4fce commit a3fab75

6 files changed

Lines changed: 29 additions & 21 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: oolong
22
Title: Create Validation Tests for Automated Content Analysis
3-
Version: 0.3.3
3+
Version: 0.3.4
44
Authors@R:
55
person(given = "Chung-hong",
66
family = "Chan",

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# oolong 0.3.3
1+
# oolong 0.3.4
22

33
* Initial CRAN version.

R/oolong_summary.R

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,16 @@ summarise_oolong <- function(..., target_value = NULL) {
104104
#' }
105105
#' A useful summary of an object can be obtained either by \code{\link{print.oolong_summary}} or \code{\link{plot.oolong_summary}}. For details, please see the overview vignette: \code{vignette("overview", package = "oolong")}
106106
#' @examples
107-
#' \donttest{
108-
#' data(abstracts_stm)
109-
#' oolong_test1 <- create_oolong(abstracts_stm)
110-
#' oolong_test2 <- clone_oolong(oolong_test1)
111-
#' oolong_test1$do_word_intrusion_test()
112-
#' oolong_test2$do_word_intrusion_test()
113-
#' oolong_test1$lock()
114-
#' oolong_test2$lock()
115-
#' summarize(oolong_test1, oolong_test2)
107+
#' # Please try this example in interactive R sessions only.
108+
#' if (interactive()) {
109+
#' data(abstracts_stm)
110+
#' oolong_test1 <- create_oolong(abstracts_stm)
111+
#' oolong_test2 <- clone_oolong(oolong_test1)
112+
#' oolong_test1$do_word_intrusion_test()
113+
#' oolong_test2$do_word_intrusion_test()
114+
#' oolong_test1$lock()
115+
#' oolong_test2$lock()
116+
#' summarize_oolong(oolong_test1, oolong_test2)
116117
#' }
117118
#' @author Chung-hong Chan
118119
#' @references

cran-comments.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Resubmission (20-Mar-2020) - version 0.3.4
2+
3+
functions which are supposed to only run interactively (e.g. shiny) should be wrapped in if(interactive()). Is this the case?
4+
5+
With reference to similar packages (editData etc.), wrapping this example in `if(interactive())` makes more sense. I have done so for the example of `summarize_ooolong`. Thank you very much!
6+
17
## Resubmission (16-Mar-2020) - version 0.3.3
28

39
Regarding \dontrun in summarize_oolong.Rd:

man/summarize_oolong.Rd

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

overview_gh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ abstracts_dfm
305305

306306
``` r
307307
oolong_test <- create_oolong(abstracts_warplda, abstracts$text, input_dfm = abstracts_dfm)
308-
#> INFO [16:02:33.937] early stopping at 50 iteration
308+
#> INFO [13:40:42.066] early stopping at 50 iteration
309309
oolong_test
310310
#> An oolong test object with k = 20, 0 coded.
311311
#> Use the method $do_word_intrusion_test() to do word intrusion test.

0 commit comments

Comments
 (0)