Skip to content
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

Upgrade the dfm object #82

Closed
chainsawriot opened this issue Feb 8, 2024 · 1 comment
Closed

Upgrade the dfm object #82

chainsawriot opened this issue Feb 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@chainsawriot
Copy link
Collaborator

I can't run devtools::documents() to update the documentation. And I produced this Dockerfile to reconstruct the compenv and reproduce the error.

FROM ghcr.io/r-hub/evercran/4.3.2
RUN apt-get update; apt-get install -y libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev libharfbuzz-dev libfribidi-dev libssl-dev libxml2-dev git libfontconfig1-dev; Rscript -e "install.packages(c('quanteda', 'devtools', 'shiny', 'purrr', 'ggplot2', 'cowplot', 'tibble', 'digest', 'R6', 'irr', 'cli', 'keyATM', 'text2vec', 'mlapi'))"
RUN git clone https://github.com/gesistsa/oolong.git; cd oolong; Rscript -e "devtools::document()"
CMD ['R']

After some investigation, the problem should be the abtracts_dfm object. It needs to be updated.

@chainsawriot chainsawriot added the bug Something isn't working label Feb 8, 2024
@chainsawriot
Copy link
Collaborator Author

Also afinn.

chainsawriot added a commit that referenced this issue Feb 8, 2024
By running

```r
require(quanteda) # 3.3.1
afinn <- dictionary(afinn)
usethis::use_data(afinn, overwrite = TRUE)
abstracts_dfm <- dfm(abstracts_dfm)
usethis::use_data(abstracts_dfm, overwrite = TRUE)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant