`corpus_properties()` crashes if corpus is not found
Closed this issue · 2 comments
ablaette commented
This works ...
library(polmineR)
use("RcppCWB")
x <- corpus("REUTERS")
RcppCWB::corpus_properties(corpus = x@corpus, registry = x@registry_dir)
But if the corpus has not been loaded before, you see a crash.
RcppCWB::corpus_properties(corpus = x@corpus, registry = x@registry_dir)
ablaette commented
This is a minimal example. Run this line without loading RcppCWB before.
RcppCWB::corpus_properties(corpus = "REUTERS", registry = Sys.getenv("CORPUS_REGISTRY"))
ablaette commented
Fixed.