Hi folks,
Im getting error "unable to find a function tokens" after installing "quanteda" package.
Do you know why?
R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R é um software livre e vem sem GARANTIA ALGUMA.
Você pode redistribuí-lo sob certas circunstâncias.
Digite 'license()' ou 'licence()' para detalhes de distribuição.
R é um projeto colaborativo com muitos contribuidores.
Digite 'contributors()' para obter mais informações e
'citation()' para saber como citar o R ou pacotes do R em publicações.
Digite 'demo()' para demonstrações, 'help()' para o sistema on-line de ajuda,
ou 'help.start()' para abrir o sistema de ajuda em HTML no seu navegador.
Digite 'q()' para sair do R.
[Workspace loaded from C:/Users/felipe.vaz/OneDrive - Unimedpoa/Text mining/.RData]
> knitr::opts_chunk$set(echo = TRUE)
> install.packages("quanteda")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into �C:/Users/felipe.vaz/Documents/R/win-library/3.6�
(as �lib� is unspecified)
also installing the dependencies �ellipsis�, �colorspace�, �assertthat�, �utf8�, �vctrs�, �plyr�, �farver�, �labeling�, �munsell�, �R6�, �RColorBrewer�, �lifecycle�, �cli�, �crayon�, �fansi�, �pillar�, �pkgconfig�, �coda�, �rappdirs�, �extrafontdb�, �Rttf2pt1�, �gtable�, �lazyeval�, �reshape2�, �scales�, �tibble�, �viridisLite�, �withr�, �RcppEigen�, �statnet.common�, �reticulate�, �ISOcodes�, �data.table�, �extrafont�, �fastmatch�, �ggplot2�, �ggrepel�, �lubridate�, �network�, �RSpectra�, �RcppParallel�, �sna�, �SnowballC�, �spacyr�, �stopwords�, �xml2�, �proxyC�, �RcppArmadillo�
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/ellipsis_0.3.0.zip'
Content type 'application/zip' length 44631 bytes (43 KB)
downloaded 43 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/colorspace_1.4-1.zip'
Content type 'application/zip' length 2550276 bytes (2.4 MB)
downloaded 2.4 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/assertthat_0.2.1.zip'
Content type 'application/zip' length 55079 bytes (53 KB)
downloaded 53 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/utf8_1.1.4.zip'
Content type 'application/zip' length 215328 bytes (210 KB)
downloaded 210 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/vctrs_0.2.3.zip'
Content type 'application/zip' length 987954 bytes (964 KB)
downloaded 964 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/plyr_1.8.5.zip'
Content type 'application/zip' length 1305082 bytes (1.2 MB)
downloaded 1.2 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/farver_2.0.3.zip'
Content type 'application/zip' length 1912808 bytes (1.8 MB)
downloaded 1.8 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/labeling_0.3.zip'
Content type 'application/zip' length 62937 bytes (61 KB)
downloaded 61 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/munsell_0.5.0.zip'
Content type 'application/zip' length 245716 bytes (239 KB)
downloaded 239 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/R6_2.4.1.zip'
Content type 'application/zip' length 59338 bytes (57 KB)
downloaded 57 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/RColorBrewer_1.1-2.zip'
Content type 'application/zip' length 55569 bytes (54 KB)
downloaded 54 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/lifecycle_0.1.0.zip'
Content type 'application/zip' length 84766 bytes (82 KB)
downloaded 82 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/cli_2.0.1.zip'
Content type 'application/zip' length 389407 bytes (380 KB)
downloaded 380 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/crayon_1.3.4.zip'
Content type 'application/zip' length 750079 bytes (732 KB)
downloaded 732 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/fansi_0.4.1.zip'
Content type 'application/zip' length 224033 bytes (218 KB)
downloaded 218 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/pillar_1.4.3.zip'
Content type 'application/zip' length 184813 bytes (180 KB)
downloaded 180 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/pkgconfig_2.0.3.zip'
Content type 'application/zip' length 22269 bytes (21 KB)
downloaded 21 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/coda_0.19-3.zip'
Content type 'application/zip' length 324895 bytes (317 KB)
downloaded 317 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/rappdirs_0.3.1.zip'
Content type 'application/zip' length 87342 bytes (85 KB)
downloaded 85 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/extrafontdb_1.0.zip'
Content type 'application/zip' length 10383 bytes (10 KB)
downloaded 10 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/Rttf2pt1_1.3.8.zip'
Content type 'application/zip' length 117759 bytes (114 KB)
downloaded 114 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/gtable_0.3.0.zip'
Content type 'application/zip' length 434516 bytes (424 KB)
downloaded 424 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/lazyeval_0.2.2.zip'
Content type 'application/zip' length 173385 bytes (169 KB)
downloaded 169 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/reshape2_1.4.3.zip'
Content type 'application/zip' length 626595 bytes (611 KB)
downloaded 611 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/scales_1.1.0.zip'
Content type 'application/zip' length 556764 bytes (543 KB)
downloaded 543 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/tibble_2.1.3.zip'
Content type 'application/zip' length 336901 bytes (329 KB)
downloaded 329 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/viridisLite_0.3.0.zip'
Content type 'application/zip' length 60753 bytes (59 KB)
downloaded 59 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/withr_2.1.2.zip'
Content type 'application/zip' length 152049 bytes (148 KB)
downloaded 148 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/RcppEigen_0.3.3.7.0.zip'
Content type 'application/zip' length 2676436 bytes (2.6 MB)
downloaded 2.6 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/statnet.common_4.3.0.zip'
Content type 'application/zip' length 206317 bytes (201 KB)
downloaded 201 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/reticulate_1.14.zip'
Content type 'application/zip' length 1725286 bytes (1.6 MB)
downloaded 1.6 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/ISOcodes_2019.12.22.zip'
Content type 'application/zip' length 306011 bytes (298 KB)
downloaded 298 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/data.table_1.12.8.zip'
Content type 'application/zip' length 2277090 bytes (2.2 MB)
downloaded 2.2 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/extrafont_0.17.zip'
Content type 'application/zip' length 52372 bytes (51 KB)
downloaded 51 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/fastmatch_1.1-0.zip'
Content type 'application/zip' length 53811 bytes (52 KB)
downloaded 52 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/ggplot2_3.2.1.zip'
Content type 'application/zip' length 3976921 bytes (3.8 MB)
downloaded 3.8 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/ggrepel_0.8.1.zip'
Content type 'application/zip' length 1132959 bytes (1.1 MB)
downloaded 1.1 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/lubridate_1.7.4.zip'
Content type 'application/zip' length 1578822 bytes (1.5 MB)
downloaded 1.5 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/network_1.16.0.zip'
Content type 'application/zip' length 965698 bytes (943 KB)
downloaded 943 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/RSpectra_0.16-0.zip'
Content type 'application/zip' length 1274269 bytes (1.2 MB)
downloaded 1.2 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/RcppParallel_4.4.4.zip'
Content type 'application/zip' length 3756049 bytes (3.6 MB)
downloaded 3.6 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/sna_2.5.zip'
Content type 'application/zip' length 1319444 bytes (1.3 MB)
downloaded 1.3 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/SnowballC_0.6.0.zip'
Content type 'application/zip' length 3083051 bytes (2.9 MB)
downloaded 2.9 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/spacyr_1.2.zip'
Content type 'application/zip' length 195196 bytes (190 KB)
downloaded 190 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/stopwords_1.0.zip'
Content type 'application/zip' length 141632 bytes (138 KB)
downloaded 138 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/xml2_1.2.2.zip'
Content type 'application/zip' length 3491054 bytes (3.3 MB)
downloaded 3.3 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/proxyC_0.1.5.zip'
Content type 'application/zip' length 735964 bytes (718 KB)
downloaded 718 KB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/RcppArmadillo_0.9.850.1.0.zip'
Content type 'application/zip' length 2322726 bytes (2.2 MB)
downloaded 2.2 MB
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/quanteda_1.5.2.zip'
Content type 'application/zip' length 4550622 bytes (4.3 MB)
downloaded 4.3 MB
package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘colorspace’ successfully unpacked and MD5 sums checked
package ‘assertthat’ successfully unpacked and MD5 sums checked
package ‘utf8’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘plyr’ successfully unpacked and MD5 sums checked
package ‘farver’ successfully unpacked and MD5 sums checked
package ‘labeling’ successfully unpacked and MD5 sums checked
package ‘munsell’ successfully unpacked and MD5 sums checked
package ‘R6’ successfully unpacked and MD5 sums checked
package ‘RColorBrewer’ successfully unpacked and MD5 sums checked
package ‘lifecycle’ successfully unpacked and MD5 sums checked
package ‘cli’ successfully unpacked and MD5 sums checked
package ‘crayon’ successfully unpacked and MD5 sums checked
package ‘fansi’ successfully unpacked and MD5 sums checked
package ‘pillar’ successfully unpacked and MD5 sums checked
package ‘pkgconfig’ successfully unpacked and MD5 sums checked
package ‘coda’ successfully unpacked and MD5 sums checked
package ‘rappdirs’ successfully unpacked and MD5 sums checked
package ‘extrafontdb’ successfully unpacked and MD5 sums checked
package ‘Rttf2pt1’ successfully unpacked and MD5 sums checked
package ‘gtable’ successfully unpacked and MD5 sums checked
package ‘lazyeval’ successfully unpacked and MD5 sums checked
package ‘reshape2’ successfully unpacked and MD5 sums checked
package ‘scales’ successfully unpacked and MD5 sums checked
package ‘tibble’ successfully unpacked and MD5 sums checked
package ‘viridisLite’ successfully unpacked and MD5 sums checked
package ‘withr’ successfully unpacked and MD5 sums checked
package ‘RcppEigen’ successfully unpacked and MD5 sums checked
package ‘statnet.common’ successfully unpacked and MD5 sums checked
package ‘reticulate’ successfully unpacked and MD5 sums checked
package ‘ISOcodes’ successfully unpacked and MD5 sums checked
package ‘data.table’ successfully unpacked and MD5 sums checked
package ‘extrafont’ successfully unpacked and MD5 sums checked
package ‘fastmatch’ successfully unpacked and MD5 sums checked
package ‘ggplot2’ successfully unpacked and MD5 sums checked
package ‘ggrepel’ successfully unpacked and MD5 sums checked
package ‘lubridate’ successfully unpacked and MD5 sums checked
package ‘network’ successfully unpacked and MD5 sums checked
package ‘RSpectra’ successfully unpacked and MD5 sums checked
package ‘RcppParallel’ successfully unpacked and MD5 sums checked
package ‘sna’ successfully unpacked and MD5 sums checked
package ‘SnowballC’ successfully unpacked and MD5 sums checked
package ‘spacyr’ successfully unpacked and MD5 sums checked
package ‘stopwords’ successfully unpacked and MD5 sums checked
package ‘xml2’ successfully unpacked and MD5 sums checked
package ‘proxyC’ successfully unpacked and MD5 sums checked
package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
package ‘quanteda’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\felipe.vaz\AppData\Local\Temp\Rtmp67Fifm\downloaded_packages
> tokens(TestText)
Error in tokens(TestText) : não foi possível encontrar a função "tokens"
> View(TestText)
Error in View : objeto 'TestText' não encontrado
> TestText <- c("This is a test")
> View(TestText)
> tokens(TestText)
Error in tokens(TestText) : não foi possível encontrar a função "tokens"