juliasilge / tidytext
Showing 1 of 4 files from the diff.

@@ -116,7 +116,7 @@
Loading
116 116
#' @export
117 117
tidy.corpus <- function(x, ...) {
118 118
  tibble::as_tibble(data.frame(
119 -
    text = quanteda::texts(x),
119 +
    text = as.character(x),
120 120
    quanteda::docvars(x),
121 121
    stringsAsFactors = FALSE
122 122
  ))
@@ -126,7 +126,7 @@
Loading
126 126
#' @rdname corpus_tidiers
127 127
#' @export
128 128
glance.corpus <- function(x, ...) {
129 -
  md <- purrr::compact(quanteda::metacorpus(x))
129 +
  md <- purrr::compact(quanteda::meta(x))
130 130
131 131
  # turn vectors into list columns
132 132
  md <- purrr::map_if(md, ~ length(.) > 1, list)
Files Coverage
R 83.04%
Project Totals (19 files) 83.04%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
    patch:
10
      default:
11
        target: auto
12
        threshold: 1%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading