Closed dokato closed 4 years ago
Time to update R, although it appears we require a newer version of usethis than you have, since that's likely causing the problem. I will make a note to add a version dependency when I can figure out which older versions cause this issue.
Works fine on 4.0:
> sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.4
> remove.packages("stopwords")
Removing package from ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library’
(as ‘lib’ is unspecified)
> install.packages("stopwords")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/stopwords_2.0.tgz'
Content type 'application/x-gzip' length 188404 bytes (183 KB)
==================================================
downloaded 183 KB
The downloaded binary packages are in
/var/folders/92/64fddl_57nddq_wwqpjnglwn48rjsn/T//Rtmp0u7R67/downloaded_packages
> remove.packages("stopwords")
Removing package from ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library’
(as ‘lib’ is unspecified)
> install.packages("stopwords", type = "source")
Error in install.packages : Updating loaded packages
> install.packages("stopwords", type = "source")
trying URL 'https://cran.rstudio.com/src/contrib/stopwords_2.0.tar.gz'
Content type 'application/x-gzip' length 139571 bytes (136 KB)
==================================================
downloaded 136 KB
* installing *source* package ‘stopwords’ ...
** package ‘stopwords’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (stopwords)
The downloaded source packages are in
‘/private/var/folders/92/64fddl_57nddq_wwqpjnglwn48rjsn/T/Rtmp0u7R67/downloaded_packages’
Hi, I cannot install stopwords, keep running into the following error.
object 'has_package_doc' not found
Error: unable to load R code in package ‘stopwords’ ```
@Cosmopal can you paste the output of the following:
sessionInfo()
install.packages("stopwords")
@kbenoit thanks for the prompt reply. Here is the output:
> sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS
Matrix products: default
BLAS: /usr/local/lib/R/lib64/R/lib/libRblas.so
LAPACK: /usr/local/lib/R/lib64/R/lib/libRlapack.so
locale:
[1] LC_CTYPE=en_IN.UTF-8 LC_NUMERIC=C LC_TIME=en_IN.UTF-8
[4] LC_COLLATE=en_IN.UTF-8 LC_MONETARY=en_IN.UTF-8 LC_MESSAGES=en_IN.UTF-8
[7] LC_PAPER=en_IN.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_IN.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.6.0 tools_3.6.0
> install.packages("stopwords")
Installing package into ‘/home/cosmopal/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/stopwords_2.0.tar.gz'
Content type 'application/x-gzip' length 139571 bytes (136 KB)
==================================================
downloaded 136 KB
* installing *source* package ‘stopwords’ ...
** package ‘stopwords’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'has_package_doc' not found
Error: unable to load R code in package ‘stopwords’
Execution halted
ERROR: lazy loading failed for package ‘stopwords’
* removing ‘/home/cosmopal/R/x86_64-pc-linux-gnu-library/3.6/stopwords’
Warning in install.packages :
installation of package ‘stopwords’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpjoRZzp/downloaded_packages’
Is this problem also because of R being < 4.0 ?
No it should not be a 4.0 issue, although I would advise you to update your version of R.
What happens if you try this:
# the three Imports dependencies for stopwords
install.packages("usethis")
install.packages("desc")
install.packages("ISOcodes")
# then try installing stopwords
install.packages("stopwords")
and if that fails, then:
devtools::install_github("quanteda/stopwords")
Hey,
I came across this issue while trying to install from CRAN:
GH version works fine.
I have R version
3.5.1
on Mac.