The cl_delete_corpus() function works as intended if a corpus has been loaded before:
library(RcppCWB)
cl_attribute_size(corpus = "UNGA", attribute = "word", attribute_type = "p")
cl_delete_corpus("UNGA")
But there is a nasty crash if the corpus is not loaded - e.g. if it has been deleted before.
library(RcppCWB)
cl_delete_corpus("UNGA")
cl_delete_corpus("UNGA")
The
cl_delete_corpus()function works as intended if a corpus has been loaded before:But there is a nasty crash if the corpus is not loaded - e.g. if it has been deleted before.