Did anyone tried to install R package: UScensus2010blk on your own PC?
I tried to use from UScensus2010:
install.blk ("windows")
It gives an error saying "Not Available Yet"
I downloaded the package myself (4.2GB!) and tried to install from local and I still get error messages:
installing source package 'UScensus2010blk' ...
** data
Warning in file.copy(files, is, TRUE) :
problem copying data\montana.blk10.rda to Q:\LCVDJ\R\R-3.0.2\library\UScensus2010blk\data\montana.blk10.rda: Invalid argument
...
(the error message repeats for different states)
...
** help
Error in lazyLoadDBinsertListElement(from, i, datafile, ascii, compress, :
write failed
ERROR: installing Rd objects failed for package 'UScensus2010blk'
* removing 'Q:/LCVDJ/R/R-3.0.2/library/UScensus2010blk'
Warning in install.packages :
running command '"Q:/LCVDJ/R/R-30~1.2/bin/i386/R" CMD INSTALL -l "Q:\LCVDJ\R\R-3.0.2\library" "C:/Users/n1304/Downloads/UScensus2010blk_1.00.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/n1304/Downloads/UScensus2010blk_1.00.tar.gz’ had non-zero exit status
Does anyone have any idea why my installation is failed? I'm using R-3.0.2
Thanks!
There's an error in the census2010 package. The functions install.tract, install.blk, install.blkgrp, install.county, and install.cdp are supposed to check for R version >= 2.11 if you call the functions with the "windows" argument, but they only check the minor version so if you have R version 3.0 through 3.10 they incorrectly report an error.
To work around this error, you should be able to run
install.packages('UScensus2010blk', repos='http://lakshmi.calit2.uci.edu/census2000/R/', type='source')
instead of
install.blk('windows')
I tried to install it, and received the same message. It appears to be a problem with all the "windows" installations, as the command install.blk("linux") is functional.
Related
I am trying to install a home-made package in R. It installs OK on two computers, but on another, I get this error message:
Error in rawToChar(block[seq_len(ns)]) :
embedded nul in string: 'PK\003\004\024\0\0\0\b\0יxיPװ\331Qbב\037\0\0\337%\0\0\r\0\0\0[Content].tarםZeX\034\335\025^,$xp‡אממ\301%8\004\b÷Xp[$¸»\004\r.\301\002‹»\023\\ƒ»\005w‡ !H7\375\332¦´M\373פO\177uז'
Warning in install.packages :
Is there a fix? What can cause the problem?
The packages is written mostly in RcppArmadillo, with some extra C++ packages. When I use the check option I get no errors nor warnings.
I wish to install sentiment140 github package by developer okugami79. I wrote following script for the same:
install.packages("githubinstall")
require(devtools)
library(githubinstall)
install_github('sentiment140', 'okugami79')
library(sentiment)
But it threw an error:
Installation failed: Failed to connect to raw.githubusercontent.com port 443: Timed out
Warning message: Username parameter is deprecated. Please use okugami79/sentiment140
Then I modified installation statement as follows:
install_github('okugami79/sentiment140')
Still it threw an error:
Installation failed: Failed to connect to raw.githubusercontent.com port 443: Timed out
I checked for solution on stackoverflow through following link:
Timeout R package installation from Github
Here, I found a way to install github package by downloading package zip file and installing it in R using:
install.packages("/address/to/zip-package", repos = NULL, type="source")
This also prompts error:
Warning: invalid package 'sentiment-master'
Error: ERROR: no packages specified
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\u257449\Documents\R\win-library\3.3" "sentiment-master"' had status 1
Warning in install.packages : installation of package ‘sentiment-master’ had non-zero exit status
How should I go about installing required package from github in R ? Your valuable advice/solution is requested.
Thank You !
Just a straightforward pair of functions installed this package from Github source for me on both Windows and OSX.
install.packages("devtools")
devtools::install_github('okugami79/sentiment140')
There may be something unusual about your system setup, in which case, it would be helpful to have your session information. You can get that by entering sessionInfo().
However, note that this package you are looking to install is over 4 years old per the description file on Github. A lot of work has gone into other packages that work with natural language processing and sentiment analysis. The CRAN Task View for Natural Language Processing is a good place to start for an overview of many of these packages that can be installed directly from CRAN. There are many resources that are better maintained. For example, here's a chapter on sentiment analysis using the tidytext package.
I am having trouble getting DeepWater up and running in R via H2O. I have downloaded the most recent .jar file ( I think) but I get the following error this install command:
install.packages("C:\\Users\\..\\Documents\\R\\win-
library\\3.4\\h2o_3.10.3.99999.tar.gz", repos = NULL, type = "source",
lib="C:\\Users\\..\\Documents\\R\\win-library\\3.4")
* installing *source* package 'h2o' ...
** R Error in .install_package_code_files(".", instdir) : files in 'C:/Users/.../AppData/Local/Temp/RtmpuyZ5fc/R.INSTALL3783508571d/h2o/R' missing from 'Collate' field: xgboost.R ERROR: unable to collate and parse R files for package 'h2o'
* removing 'C:/Users/.../Documents/R/win-library/3.4/h2o'
* restoring previous 'C:/Users/.../Documents/R/win-library/3.4/h2o' Warning in install.packages : running command '"C:/PROGRA~1/R/R-34~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\...\Documents\R\win-library\3.4" "C:/Users/.../Documents/R/win-library/3.4/h2o_3.10.3.99999.tar.gz"' had status 1 Warning in install.packages : installation of package ‘C:/Users/.../Documents/R/win-library/3.4/h2o_3.10.3.99999.tar.gz’ had non-zero exit status Error in if (file.exists(dest) && file.mtime(dest) > file.mtime(lib) && : missing value where TRUE/FALSE needed
Yes we had some unused deps in one of our files in version 3.10.3.x, the one you're using.
It should be fixed in the newest version, which is 3.11.0.X and which you can get from here.
#Edit:
The above version was built for Linux, though - if you want to run it on windows you'll have to build it yourself according to the instructions here for deepwater and here for h2o. We don't have nightly builds for Windows just yet.
I am using R version 3.3.1 on RStudio interface, and a Windows 10 OS. I was trying to install the 'quantreg' package for quantile regression, however I was getting the error message
Warning in install.packages :
InternetOpenUrl failed: 'The operation timed out'
Warning in install.packages :
downloaded length 180224 != reported length 1521162
Warning in install.packages :
package ‘quantreg’ is not available (for R version 3.3.1)
I repeated the process afterwards several times but got the last line of the above error all the time. Thinking it was due to using an older R version, I tried updating by installing the 'installr' package, but that too gave me the same error as above. I tried updating R from the Tools Menu, but it kept telling me that the current R version is the latest.
Also this is my first time here, so apologies if I've messed up the blockquoting.
You need to downgrade R.
Download an older version here (I recommend 3.2.5) and install.
Then (in R), go to Tools > Global Options > press the "Change" button.
Now simply select the version you want and restart R and try reinstalling the package.
I have R 3.2.2 setup installed in my system,with RStudio version 0.99.489. When I tried to install rJava package,
install.packages("rJava")
I am getting following Error:
Warning in install.packages :
downloaded length 4878 != reported length 200
Error in install.packages : subscript out of bounds
But if I run the below command before installing any package,it works fine, but I don't want to do this every time I install a package.
options(repos=structure(c(CRAN="http://cran.us.r-project.org")))
You can stick the line you want executed at every startup in your .Rprofile file which should be in your home directory. I have 3.2.3 version of R and that worked; however I do get a warning message about using a non-http version of the site.
Similarly to you, I was finding the original repository the system was using was failing to install the packages--not finding the package or downloading a file with too few bytes, perhaps because of a transient problem. You might want to consider not putting this in your .Rprofile file or commenting the line outin case this is a temporary workaround.