Error In Install.packages Cannot Open The Connection
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more error in install.packages cannot open the connection r about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users
Error In Read.dcf(file.path(pkgname Description ) C( Package Type )) Cannot Open The Connection
Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping
Cannot Open Compressed File Description
each other. Join them; it only takes a minute: Sign up Warning while installing package in R up vote 1 down vote favorite I have been trying to install the ggplot2 package in R and this is the
R Warning In Install.packages Cannot Open Compressed File
warning I have been getting: Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open the connection In addition: Warning messages: 1: In download.file(url, destfile, method, mode = "wb", ...) : downloaded length 1040720 != reported length 1152839 2: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file 3: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open compressed file 'plyr/DESCRIPTION', probable reason 'No such file or directory' It might be helpful to note that error in setinternet2(true) : use != na is defunct I am using the version 3.1.1. Could you please help me understand what went wrong and how I could resolve this? Thank you in advance. r share|improve this question edited Sep 28 '14 at 15:04 asked Sep 28 '14 at 14:55 JohnK 4031715 what command did you enter that generated that error? –GSee Sep 28 '14 at 14:57 @GSee install.packages("ggplot2"), that is all. –JohnK Sep 28 '14 at 15:02 Try install.packages("ggplot2", repos="http://cran.us.r-project.org") or install.packages("ggplot2", repos="http://cran.rstudio.org") –GSee Sep 28 '14 at 15:03 What is the output of getOption("repos")? –GSee Sep 28 '14 at 15:03 @Gsee The output is CRAN CRANextra "freestatistics.org/cran" "stats.ox.ac.uk/pub/RWin" –JohnK Sep 28 '14 at 15:05 | show 5 more comments 1 Answer 1 active oldest votes up vote 4 down vote accepted From the comments we discovered that somehow your repos option had been set to a bad value. install.packages has an argument called repos that can be used to specify where to find the package that you'd like to install. If you specify a valid value, it should just work. e.g. you shouldn't get the error if you do this: install.packages("ggplot2", repos="http://cran.us.r-project.org") If you do not provide a value, it will look at the repos option. See getOption("repos") to see what is set. In your case it was CRAN CRANextra "freestatistics.org/cran" "stats.ox.ac.uk/pub/RWin" neither of w
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and error in gzfile(file, "rb") : cannot open the connection policies of this site About Us Learn more about Stack Overflow the company error in install.packages : type == "both" cannot be used with 'repos = null' Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users r install package from zip Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a http://stackoverflow.com/questions/26086134/warning-while-installing-package-in-r minute: Sign up How to install a package not located on CRAN repository? up vote 6 down vote favorite I am trying to use Google Trends data and have come across a few packages that are not on CRAN (GTrends, RGoogleTrends). I like what I have seen from the RGoogleTrends package at this blog, and wanted to give it a try. http://stackoverflow.com/questions/17231235/how-to-install-a-package-not-located-on-cran-repository The RGoogleTrends package is located here: http://www.omegahat.org/RGoogleTrends/ First of all, I am using a Windows OS and there is an uption in my R console: >Packages>Install package(s) from local zip drives ... This results in the following: > utils:::menuInstallLocal() Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open the connection In addition: Warning messages: 1: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file 2: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open compressed file 'RGoogleTrends_0.2-1.tar.gz/DESCRIPTION', probable reason 'No such file or directory' I'm guessing this has to do with the fact that the file is as a .gz and not a .zip file. So, I unzipped the .gz file outside of R and then zipped it into a .zip file (there's got to be a better way). Now I can install the .zip file, but when I try and load it with library, the following error occurs: > library(RGoogleTrends) Error in library(RGoogleTrends) : ‘RGoogleTrends’ is not a valid installed package What am I doing wrong here? r repository package install cran share|improve this question edited Jul 7
to use the newest version of RStudio for the purpose) I'm using R v. 3.2.1 Now I cannot: 1) install https://support.rstudio.com/hc/en-us/community/posts/205094247-Error-when-installing-packages new packages from RStudio (this I now need to do from https://groups.google.com/d/msg/swirl-discuss/DMcXENGNjuQ/TVjNceq4-9gJ RGui) 2) run or publish shiny apps using the buttons in RStudio; when doing so RStudio tells me I need to instal the newest versions of various packages - but fails me with the following error (se example below): "trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/RJSONIO_1.3-0.zip' Content type 'text/html; charset=UTF-8' length 2601 error in bytes opened URL downloaded 2601 bytes Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open the connection Calls:
från GoogleLogga inDolda fältSök efter grupper eller meddelanden