[R] Newbie question: error message with install.packages

Peter Wicher pjwicher at gmail.com
Fri Aug 21 08:22:24 CEST 2015


Peter,

Thank you.  I tried a different mirror (in TX) and install.packages(“RWeka”) worked.  I really appreciate your help.

Best,

Peter

> On Aug 20, 2015, at 3:06 PM, Peter Langfelder <peter.langfelder at gmail.com> wrote:
> 
> From an older post by Uwe Ligges:
> 
> Anyway: R tried to download the package but got an html page, obviously,
> hence either the mirror you are using is corrupted or someone in between
> (like some proxy?) delivers html pages rather than packages...
> 
> 
> In other words, check your proxy/internet settings, or perhaps try a
> different mirror.
> 
> Peter
> 
> 
> On Thu, Aug 20, 2015 at 10:09 AM, Peter Wicher <pjwicher at gmail.com> wrote:
>> Many thanks.
>> 
>> Yes, I am using the R.app GUI:
>> [R.app GUI 1.66 (6996) x86_64-apple-darwin13.4.0]
>> 
>> 
>> At startup,
>> 
>>> getOption("repos")
>>    CRAN
>> "@CRAN@"
>> 
>> Then when attempting again to install RWeka I'm able to select the mirror,
>> and after that the result is the same as yours:
>> 
>>> getOption("repos")
>>                           CRAN
>> "https://cran.cnr.Berkeley.edu"
>> 
>> Unfortunately the same error message happens with install.packages, for
>> example:
>>> install.packages("err")
>> Error: Line starting '<!DOCTYPE HTML PUBLI ...' is malformed!
>> 
>> I've confirmed that Java 8 update 60 is correctly loaded.
>> 
>> Interestingly I've loaded R on my Windows machine and this error message
>> doesn't happen, the packages load properly.
>> 
>> Peter
>> 
>> On Wed, Aug 19, 2015 at 11:17 PM, David Winsemius <dwinsemius at comcast.net>
>> wrote:
>> 
>>> 
>>>> On Aug 19, 2015, at 9:13 PM, Peter Wicher <pjwicher at gmail.com> wrote:
>>>> 
>>>> Hi,
>>>> 
>>>> I’m starting to work my way through “Machine Learning With R” by Brett
>>> Lantz.
>>>> 
>>>> Running on Mac OS X 10.10.4
>>>> 
>>>> I’ve downloaded and installed R and the R Console comes up fine.
>>>> 
>>>> Whenever I use the install.packages command, regardless of the package I
>>> get the same error message:
>>>> 
>>>>> install.packages ("RWeka")
>>>> Error: Line starting '<!DOCTYPE HTML PUBLI ...' is malformed!
>>>> 
>>>> Any idea of what is wrong and how to solve it?
>>> 
>>> Not sure. Have never gotten that error message, and I do use OS X 10.10.3
>>> as well as having very recently updated to R 3.2.2.
>>> 
>>> Are you using the R.app GUI?
>>> 
>>> If so … What do you see when you look at Preference/Startup for the
>>> default CRAN repository?
>>> 
>>> If not … What do you see when you run:
>>> 
>>> getOption("repos”)
>>> 
>>> I get:
>>> 
>>>                          CRAN
>>> "http://cran.cnr.Berkeley.edu"
>>> 
>>> 
>>>> 
>>>> Thanks!
>>>> 
>>>> Peter Wicher
>>>> pjwicher at gmail.com
>>>> 
>>>> ______________________________________________
>>>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>>> and provide commented, minimal, self-contained, reproducible code.
>>> 
>>> 
>> 
>>        [[alternative HTML version deleted]]
>> 
>> ______________________________________________
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list