Running examples in 'conText-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: feature_sim
> ### Title: Given two feature-embedding-matrices, compute "parallel" cosine
> ###   similarities between overlapping features.
> ### Aliases: feature_sim
> ### Keywords: feature_sim
> 
> ### ** Examples
> 
> 
> library(quanteda)
Package version: 3.2.3
Unicode version: 15.0
ICU version: 72.1
Parallel computing: 4 of 32 threads used.
See https://quanteda.io for tutorials and examples.
> 
> # tokenize corpus
> toks <- tokens(cr_sample_corpus)
> 
> # create feature co-occurrence matrix for each party (set tri = FALSE to work with fem)
> fcm_D <- fcm(toks[docvars(toks, 'party') == "D",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> fcm_R <- fcm(toks[docvars(toks, 'party') == "R",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> 
> # compute feature-embedding matrix
> fem_D <- fem(fcm_D, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> fem_R <- fem(fcm_R, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> 
> # compare "horizontal" cosine similarity
> feat_comp <- feature_sim(x = fem_R, y = fem_D)
Error in data.frame(feature = names(row_sim), value = unname(row_sim)) : 
  arguments imply differing number of rows: 0, 4061
Calls: feature_sim -> %>% -> <Anonymous> -> data.frame
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building 'quickstart.Rmd' using rmarkdown
Package version: 3.2.3
Unicode version: 15.0
ICU version: 72.1
Parallel computing: 4 of 32 threads used.
See https://quanteda.io for tutorials and examples.

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

as(<dgeMatrix>, "dgCMatrix") is deprecated since Matrix 1.5-0; do as(., "CsparseMatrix") instead
Quitting from lines 524-533 (quickstart.Rmd) 
Error: processing vignette 'quickstart.Rmd' failed with diagnostics:
arguments imply differing number of rows: 0, 3506
--- failed re-building 'quickstart.Rmd'

SUMMARY: processing the following file failed:
  'quickstart.Rmd'

Error: Vignette re-building failed.
Execution halted
Running examples in ‘conText-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: feature_sim
> ### Title: Given two feature-embedding-matrices, compute "parallel" cosine
> ###   similarities between overlapping features.
> ### Aliases: feature_sim
> ### Keywords: feature_sim
> 
> ### ** Examples
> 
> 
> library(quanteda)
Package version: 3.2.3
Unicode version: 15.0
ICU version: 72.1
Parallel computing: 4 of 32 threads used.
See https://quanteda.io for tutorials and examples.
> 
> # tokenize corpus
> toks <- tokens(cr_sample_corpus)
> 
> # create feature co-occurrence matrix for each party (set tri = FALSE to work with fem)
> fcm_D <- fcm(toks[docvars(toks, 'party') == "D",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> fcm_R <- fcm(toks[docvars(toks, 'party') == "R",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> 
> # compute feature-embedding matrix
> fem_D <- fem(fcm_D, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> fem_R <- fem(fcm_R, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> 
> # compare "horizontal" cosine similarity
> feat_comp <- feature_sim(x = fem_R, y = fem_D)
Error in data.frame(feature = names(row_sim), value = unname(row_sim)) : 
  arguments imply differing number of rows: 0, 4061
Calls: feature_sim -> %>% -> <Anonymous> -> data.frame
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘quickstart.Rmd’ using rmarkdown
Package version: 3.2.3
Unicode version: 15.0
ICU version: 72.1
Parallel computing: 4 of 32 threads used.
See https://quanteda.io for tutorials and examples.

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

as(<dgeMatrix>, "dgCMatrix") is deprecated since Matrix 1.5-0; do as(., "CsparseMatrix") instead
Quitting from lines 524-533 (quickstart.Rmd) 
Error: processing vignette ‘quickstart.Rmd’ failed with diagnostics:
arguments imply differing number of rows: 0, 3506
--- failed re-building ‘quickstart.Rmd’

SUMMARY: processing the following file failed:
  ‘quickstart.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘conText-Ex.R’ failed
The error most likely occurred in:

> ### Name: feature_sim
> ### Title: Given two feature-embedding-matrices, compute "parallel" cosine
> ###   similarities between overlapping features.
> ### Aliases: feature_sim
> ### Keywords: feature_sim
> 
> ### ** Examples
> 
> 
> library(quanteda)
Package version: 3.2.3
Unicode version: 13.0
ICU version: 69.1
Parallel computing: 24 of 24 threads used.
See https://quanteda.io for tutorials and examples.
> 
> # tokenize corpus
> toks <- tokens(cr_sample_corpus)
> 
> # create feature co-occurrence matrix for each party (set tri = FALSE to work with fem)
> fcm_D <- fcm(toks[docvars(toks, 'party') == "D",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> fcm_R <- fcm(toks[docvars(toks, 'party') == "R",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> 
> # compute feature-embedding matrix
> fem_D <- fem(fcm_D, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> fem_R <- fem(fcm_R, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> 
> # compare "horizontal" cosine similarity
> feat_comp <- feature_sim(x = fem_R, y = fem_D)
Error in data.frame(feature = names(row_sim), value = unname(row_sim)) : 
  arguments imply differing number of rows: 0, 4061
Calls: feature_sim -> %>% -> <Anonymous> -> data.frame
Execution halted
Error(s) in re-building vignettes:
--- re-building ‘quickstart.Rmd’ using rmarkdown
Package version: 3.2.3
Unicode version: 13.0
ICU version: 69.1
Parallel computing: 24 of 24 threads used.
See https://quanteda.io for tutorials and examples.

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

OMP: Warning #96: Cannot form a team with 24 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
as(<dgeMatrix>, "dgCMatrix") is deprecated since Matrix 1.5-0; do as(., "CsparseMatrix") instead
Quitting from lines 524-533 (quickstart.Rmd) 
Error: processing vignette 'quickstart.Rmd' failed with diagnostics:
arguments imply differing number of rows: 0, 3506
--- failed re-building ‘quickstart.Rmd’

SUMMARY: processing the following file failed:
  ‘quickstart.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘conText-Ex.R’ failed
The error most likely occurred in:

> ### Name: feature_sim
> ### Title: Given two feature-embedding-matrices, compute "parallel" cosine
> ###   similarities between overlapping features.
> ### Aliases: feature_sim
> ### Keywords: feature_sim
> 
> ### ** Examples
> 
> 
> library(quanteda)
Package version: 3.2.3
Unicode version: 13.0
ICU version: 69.1
Parallel computing: 24 of 24 threads used.
See https://quanteda.io for tutorials and examples.
> 
> # tokenize corpus
> toks <- tokens(cr_sample_corpus)
> 
> # create feature co-occurrence matrix for each party (set tri = FALSE to work with fem)
> fcm_D <- fcm(toks[docvars(toks, 'party') == "D",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> fcm_R <- fcm(toks[docvars(toks, 'party') == "R",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> 
> # compute feature-embedding matrix
> fem_D <- fem(fcm_D, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> fem_R <- fem(fcm_R, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> 
> # compare "horizontal" cosine similarity
> feat_comp <- feature_sim(x = fem_R, y = fem_D)
Error in data.frame(feature = names(row_sim), value = unname(row_sim)) : 
  arguments imply differing number of rows: 0, 4061
Calls: feature_sim -> %>% -> <Anonymous> -> data.frame
Execution halted
Error(s) in re-building vignettes:
--- re-building ‘quickstart.Rmd’ using rmarkdown
Package version: 3.2.3
Unicode version: 13.0
ICU version: 69.1
Parallel computing: 24 of 24 threads used.
See https://quanteda.io for tutorials and examples.

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

as(<dgeMatrix>, "dgCMatrix") is deprecated since Matrix 1.5-0; do as(., "CsparseMatrix") instead
Quitting from lines 524-533 (quickstart.Rmd) 
Error: processing vignette 'quickstart.Rmd' failed with diagnostics:
arguments imply differing number of rows: 0, 3506
--- failed re-building ‘quickstart.Rmd’

SUMMARY: processing the following file failed:
  ‘quickstart.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in 'conText-Ex.R' failed
The error most likely occurred in:

> ### Name: feature_sim
> ### Title: Given two feature-embedding-matrices, compute "parallel" cosine
> ###   similarities between overlapping features.
> ### Aliases: feature_sim
> ### Keywords: feature_sim
> 
> ### ** Examples
> 
> 
> library(quanteda)
Package version: 3.2.3
Unicode version: 13.0
ICU version: 69.1
Parallel computing: 56 of 56 threads used.
See https://quanteda.io for tutorials and examples.
> 
> # tokenize corpus
> toks <- tokens(cr_sample_corpus)
> 
> # create feature co-occurrence matrix for each party (set tri = FALSE to work with fem)
> fcm_D <- fcm(toks[docvars(toks, 'party') == "D",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> fcm_R <- fcm(toks[docvars(toks, 'party') == "R",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> 
> # compute feature-embedding matrix
> fem_D <- fem(fcm_D, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> fem_R <- fem(fcm_R, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> 
> # compare "horizontal" cosine similarity
> feat_comp <- feature_sim(x = fem_R, y = fem_D)
Error in data.frame(feature = names(row_sim), value = unname(row_sim)) : 
  arguments imply differing number of rows: 0, 4061
Calls: feature_sim -> %>% -> <Anonymous> -> data.frame
Execution halted
Error(s) in re-building vignettes:
--- re-building 'quickstart.Rmd' using rmarkdown
Package version: 3.2.3
Unicode version: 13.0
ICU version: 69.1
Parallel computing: 56 of 56 threads used.
See https://quanteda.io for tutorials and examples.

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

as(<dgeMatrix>, "dgCMatrix") is deprecated since Matrix 1.5-0; do as(., "CsparseMatrix") instead
Quitting from lines 524-533 (quickstart.Rmd) 
Error: processing vignette 'quickstart.Rmd' failed with diagnostics:
arguments imply differing number of rows: 0, 3506
--- failed re-building 'quickstart.Rmd'

SUMMARY: processing the following file failed:
  'quickstart.Rmd'

Error: Vignette re-building failed.
Execution halted
Running examples in ‘conText-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: feature_sim
> ### Title: Given two feature-embedding-matrices, compute "parallel" cosine
> ###   similarities between overlapping features.
> ### Aliases: feature_sim
> ### Keywords: feature_sim
> 
> ### ** Examples
> 
> 
> library(quanteda)
Package version: 3.2.3
Unicode version: 15.0
ICU version: 72.1
Parallel computing: 4 of 32 threads used.
See https://quanteda.io for tutorials and examples.
> 
> # tokenize corpus
> toks <- tokens(cr_sample_corpus)
> 
> # create feature co-occurrence matrix for each party (set tri = FALSE to work with fem)
> fcm_D <- fcm(toks[docvars(toks, 'party') == "D",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> fcm_R <- fcm(toks[docvars(toks, 'party') == "R",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> 
> # compute feature-embedding matrix
> fem_D <- fem(fcm_D, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> fem_R <- fem(fcm_R, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> 
> # compare "horizontal" cosine similarity
> feat_comp <- feature_sim(x = fem_R, y = fem_D)
Error in data.frame(feature = names(row_sim), value = unname(row_sim)) : 
  arguments imply differing number of rows: 0, 4061
Calls: feature_sim -> %>% -> <Anonymous> -> data.frame
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘quickstart.Rmd’ using rmarkdown
Package version: 3.2.3
Unicode version: 15.0
ICU version: 72.1
Parallel computing: 4 of 32 threads used.
See https://quanteda.io for tutorials and examples.

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

as(<dgeMatrix>, "dgCMatrix") is deprecated since Matrix 1.5-0; do as(., "CsparseMatrix") instead
Quitting from lines 524-533 (quickstart.Rmd) 
Error: processing vignette ‘quickstart.Rmd’ failed with diagnostics:
arguments imply differing number of rows: 0, 3506
--- failed re-building ‘quickstart.Rmd’

SUMMARY: processing the following file failed:
  ‘quickstart.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘conText-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: feature_sim
> ### Title: Given two feature-embedding-matrices, compute "parallel" cosine
> ###   similarities between overlapping features.
> ### Aliases: feature_sim
> ### Keywords: feature_sim
> 
> ### ** Examples
> 
> 
> library(quanteda)
Package version: 3.2.3
Unicode version: 15.0
ICU version: 72.1
Parallel computing: 4 of 32 threads used.
See https://quanteda.io for tutorials and examples.
> 
> # tokenize corpus
> toks <- tokens(cr_sample_corpus)
> 
> # create feature co-occurrence matrix for each party (set tri = FALSE to work with fem)
> fcm_D <- fcm(toks[docvars(toks, 'party') == "D",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> fcm_R <- fcm(toks[docvars(toks, 'party') == "R",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> 
> # compute feature-embedding matrix
> fem_D <- fem(fcm_D, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> fem_R <- fem(fcm_R, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> 
> # compare "horizontal" cosine similarity
> feat_comp <- feature_sim(x = fem_R, y = fem_D)
Error in data.frame(feature = names(row_sim), value = unname(row_sim)) : 
  arguments imply differing number of rows: 0, 4061
Calls: feature_sim -> %>% -> <Anonymous> -> data.frame
Execution halted
Error(s) in re-building vignettes:
  ...
--- re-building ‘quickstart.Rmd’ using rmarkdown
Package version: 3.2.3
Unicode version: 15.0
ICU version: 72.1
Parallel computing: 4 of 32 threads used.
See https://quanteda.io for tutorials and examples.

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

as(<dgeMatrix>, "dgCMatrix") is deprecated since Matrix 1.5-0; do as(., "CsparseMatrix") instead
Quitting from lines 524-533 (quickstart.Rmd) 
Error: processing vignette ‘quickstart.Rmd’ failed with diagnostics:
arguments imply differing number of rows: 0, 3506
--- failed re-building ‘quickstart.Rmd’

SUMMARY: processing the following file failed:
  ‘quickstart.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in 'conText-Ex.R' failed
The error most likely occurred in:

> ### Name: feature_sim
> ### Title: Given two feature-embedding-matrices, compute "parallel" cosine
> ###   similarities between overlapping features.
> ### Aliases: feature_sim
> ### Keywords: feature_sim
> 
> ### ** Examples
> 
> 
> library(quanteda)
Package version: 3.2.3
Unicode version: 13.0
ICU version: 69.1
Parallel computing: 32 of 32 threads used.
See https://quanteda.io for tutorials and examples.
> 
> # tokenize corpus
> toks <- tokens(cr_sample_corpus)
> 
> # create feature co-occurrence matrix for each party (set tri = FALSE to work with fem)
> fcm_D <- fcm(toks[docvars(toks, 'party') == "D",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> fcm_R <- fcm(toks[docvars(toks, 'party') == "R",],
+ context = "window", window = 6, count = "frequency", tri = FALSE)
> 
> # compute feature-embedding matrix
> fem_D <- fem(fcm_D, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> fem_R <- fem(fcm_R, pre_trained = cr_glove_subset,
+ transform = TRUE, transform_matrix = cr_transform, verbose = FALSE)
> 
> # compare "horizontal" cosine similarity
> feat_comp <- feature_sim(x = fem_R, y = fem_D)
Error in data.frame(feature = names(row_sim), value = unname(row_sim)) : 
  arguments imply differing number of rows: 0, 4061
Calls: feature_sim -> %>% -> <Anonymous> -> data.frame
Execution halted
Error(s) in re-building vignettes:
--- re-building 'quickstart.Rmd' using rmarkdown
Package version: 3.2.3
Unicode version: 13.0
ICU version: 69.1
Parallel computing: 32 of 32 threads used.
See https://quanteda.io for tutorials and examples.

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

as(<dgeMatrix>, "dgCMatrix") is deprecated since Matrix 1.5-0; do as(., "CsparseMatrix") instead
Quitting from lines 524-533 (quickstart.Rmd) 
Error: processing vignette 'quickstart.Rmd' failed with diagnostics:
arguments imply differing number of rows: 0, 3506
--- failed re-building 'quickstart.Rmd'

SUMMARY: processing the following file failed:
  'quickstart.Rmd'

Error: Vignette re-building failed.
Execution halted