Skip to content

Commit 4403370

Browse files
committed
Include CRAN remarks
1 parent 020c141 commit 4403370

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

R/textplot_biterms.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ NULL
3434
#' data(example_btm, package = 'textplot')
3535
#'
3636
#' model <- example_btm
37-
#' \dontrun{
37+
#' \donttest{
3838
#' plot(model, title = "BTM model", top_n = 3)
3939
#' plot(model, title = "BTM model", top_n = 3, labels = 1:model$K)
4040
#' plot(model, title = "BTM model", which = 7:15)
@@ -57,7 +57,7 @@ NULL
5757
#' which = c(3, 4, 5, 6, 7, 9, 12, 16, 20),
5858
#' labels = topiclabels)
5959
#'
60-
#' \dontrun{
60+
#' \donttest{
6161
#' library(BTM)
6262
#' library(data.table)
6363
#' library(udpipe)
@@ -96,7 +96,7 @@ plot.BTM <- function(x,
9696
}
9797
if(!is.data.frame(biterms)){
9898
if(inherits(ok, "try-error")){
99-
cat(ok)
99+
warning(ok)
100100
}
101101
stop("Please provide in argument biterms a data.frame with columns term1, term2 and topic\nIf x is of class BTM and you are reloading a saved BTM model, you should have saved your biterms as well.")
102102
}
@@ -125,7 +125,7 @@ plot.BTM <- function(x,
125125
#' group_terms <- terms(example_btm, top_n = 3)
126126
#' group_biterms <- example_btm$biterms$biterms
127127
#'
128-
#' \dontrun{
128+
#' \donttest{
129129
#' textplot_bitermclusters(terminology = group_terms, biterms = group_biterms)
130130
#' textplot_bitermclusters(terminology = group_terms, biterms = group_biterms,
131131
#' title = "BTM model", subtitle = "Topics 7-15",

R/textplot_corglasso.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#'
2323
#' m <- dtm_cor(dtm)
2424
#' textplot_correlation_glasso(m, exclude_zero = TRUE)
25-
#' \dontrun{
25+
#' \donttest{
2626
#' textplot_correlation_glasso(m, exclude_zero = FALSE)
2727
#' }
2828
textplot_correlation_glasso <- function(x, n = 1000, exclude_zero = TRUE, label.cex = 1, node.width = 0.5, ...){

R/textplot_dependencies.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#' @seealso \code{\link[udpipe]{udpipe}}
1717
#' @export
1818
#' @examples
19-
#' \dontrun{
19+
#' \donttest{
2020
#' library(udpipe)
2121
#' x <- udpipe("The economy is weak but the outlook is bright", "english")
2222
#' textplot_dependencyparser(x)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This repository contains an R package which provides functionalities to easily v
44

55
## Installation
66

7-
- For regular users, install the package from your local CRAN mirror `install.packages("textplot")` (currently the package is not on CRAN but will hopefully it will be accepted soon)
7+
- For regular users, install the package from your local CRAN mirror: `install.packages("textplot")`
88
- For installing the development version of this package: `remotes::install_github("bnosac/textplot")`
99

1010
Look to the documentation of the functions and run the examples to see what it can do.

man/plot.BTM.Rd

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

man/textplot_bitermclusters.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/textplot_correlation_glasso.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/textplot_dependencyparser.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)