New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
corpus_registry_dir() duplicating on Windows #267
Comments
We can actually make it happen using only lower-level RcppCWB functions. The call to cqp_subcorpus_size shows that the search itself was successful. Have there been any changes in the last year to RcppCWB that might lead to such doubling? The demonstration below uses Windows version 10.0.19045
|
I face a similar issue when doing this on macOS: library(polmineR)
use("GermaParl2")
foo <- corpus("GERMAPARL2MINI") %>%
subset(protocol_date == "1949-09-07", verbose = TRUE) %>%
subset(speaker_name == "Konrad Adenauer", verbose = TRUE)
foo <- corpus("GERMAPARL2MINI") %>%
subset(protocol_date == "1949-09-07", verbose = TRUE) %>%
subset(speaker_name == "Konrad Adenauer", verbose = TRUE) It's absolutely clear that this issue needs to be solved. Apologies for taking it up this late! |
There is a closely a related issue on macOS: |
We are using polmineR for a Text and Corpus Analysis class for Undergraduate and Graduate students. For individuals using polmineR on Windows, there is a recurring issue preventing use of polmineR. Here is the ouput of the error:
" error in evaluating the argument '.Object' in selecting a method for function 'count': Cannot initialize corpus object - corpus defined by two different registry files."
Included below is the issue on Windows and a positive example of how polmineR correctly works on Mac.
Windows Issue
Version Numbers
Check path before loading polmineR
Check path after loading
Run count command once
Registry is now duplicated (length = 2), prompting the above error on all future commands using polmineR
Mac Success
Versions
R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
Set Registry Environment and load polmineR
Sys.setenv("CORPUS_REGISTRY" = "/Volumes/cwb_registry/mac_registry")
Run count command --> registry is still length 1
Even after running count() twice the corpus_registry_dir of the British National Corpus stil has length 1. On Windows it doubles and becomes length 2
The text was updated successfully, but these errors were encountered: