Closed sjentsch closed 4 months ago
Hello @sjentsch 👋
Could you delete the dataset and try again? I'm not able to reproduce your results
textdata::lexicon_nrc_vad(delete = TRUE)
Yes, I did. The result is the same. I also tried on two different machines.
And it happens independent of R version and OS. I tried Linux with R 4.4 (the two machines mentioned above) plus on a Windows machine with R 4.3.
The version that currently is on CRAN produces the error.
There, textdata:::process_nrc_vad
looks like this:
function (folder_path, name_path)
{
data <- read_tsv(path(folder_path, "NRC-VAD-Lexicon-Aug2018Release/NRC-VAD-Lexicon.txt"),
col_types = cols(Word = col_character(), Valence = col_double(),
Arousal = col_double(), Dominance = col_double()))
write_rds(data, name_path)
}
<bytecode: 0x5a2c82c537a0>
<environment: namespace:textdata>
The version on Github has the error fixed. It was changed with this commit: https://github.com/EmilHvitfeldt/textdata/commit/c1f0726e79b1a4896888249713a3396c3cd699d1
But obviously the version on CRAN wasn't updated.
The package has been updated on CRAN!
Thanks, Emil!
The original data file doesn't seem to contain headers.