Running examples in ‘wordspace-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: read.dsm.triplet
> ### Title: Load DSM Data from Triplet Representation (wordspace)
> ### Aliases: read.dsm.triplet
> ### Keywords: file
> 
> ### ** Examples
> 
> ## this helper function displays the cooccurrence matrix together with marginals
> with.marginals <- function (x) {
+   y <- x$M
+   rownames(y) <- with(x$rows, sprintf("%-8s | %6d", term, f))
+   colnames(y) <- with(x$cols, sprintf("  %s | %d", term, f))
+   y
+ }
> 
> ## we will read this term-context DSM from a triplet file included in the package
> with.marginals(DSM_TermContext)
7 x 7 sparse Matrix of class "dgCMatrix"
                    Felidae | 270   Pet | 305   Feral | 308   Boat | 313
cat      |   6103              10          10             7            .
dog      |  14180               .          10             4           11
animal   |  21538               2          15            10            .
time     | 316591               1           .             .            2
reason   |  26470               .           1             .            .
cause    |  15913               .           .             .            2
effect   |  36933               .           .             .            1
                    Philosophy | 273   Kant | 263   Back_Pain | 310
cat      |   6103                  .            .                 .
dog      |  14180                  .            .                 .
animal   |  21538                  .            .                 .
time     | 316591                  2            1                 .
reason   |  26470                  1            4                 1
cause    |  15913                  1            2                 6
effect   |  36933                  .            1                 .
> 
> ## the triplet file with term-document frequencies
> triplet.file <- system.file("extdata", "term_context_triplets.gz", package="wordspace")
> cat(readLines(triplet.file), sep="\n") # file format
cat	Felidae	10
animal	Felidae	2
time	Felidae	1
cat	Pet	10
dog	Pet	10
animal	Pet	15
reason	Pet	1
cat	Feral	7
dog	Feral	4
animal	Feral	10
dog	Boat	11
time	Boat	2
cause	Boat	2
effect	Boat	1
time	Philosophy	2
reason	Philosophy	1
cause	Philosophy	1
time	Kant	1
reason	Kant	4
cause	Kant	2
effect	Kant	1
reason	Back_Pain	1
cause	Back_Pain	6
> 
> ## marginals incorrect because matrix covers only subset of targets & features
> TC1 <- read.dsm.triplet(triplet.file, freq=TRUE)
Error in what[known] <- sapply(col_types[known], do.call, list(0)) : 
  replacement has length zero
Calls: read.dsm.triplet -> .read.delim.raw -> dstrsplit
Execution halted