[R] install package from CRAN

stephen sefick ssefick at gmail.com
Wed Jul 29 04:33:26 CEST 2009


What was the problem- out of curiosity?

Stephen Sefick

On Tue, Jul 28, 2009 at 9:23 PM, cindy Guo<cindy.guo3 at gmail.com> wrote:
> Hi,
>
> Thank you for all your replies. I got it work now.
>
> Cindy
>
> On Tue, Jul 28, 2009 at 6:09 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
>>
>> Cindy,
>>
>> On 28 July 2009 at 17:15, cindy Guo wrote:
>> | I have a very basic question about install packages from CRAN on unix. I
>> | only installed on Windows before. Should I use the command
>> install.package?
>> | The error message I got is
>> | syntax error near unexpected token `"mvtnorm"'
>> | Is it because I didn't set the path? Which path should I specify?
>>
>> a)  You use install.packages() only from __inside R__. As you got an error
>>    from bash, you must have done this from the command prompt.
>>
>> b)  At the command prompt, use 'R CMD INSTALL mvtnorm' instead.
>>
>> In either case, you need proper permissions to install in global
>> directories,
>> so if you can run this, try either 'sudo R' to start R so that
>> 'install.packages("mvtnorm")' will succeed, or use 'sudo R CMD INSTALL
>> mvtnorm.
>>
>> Also, if you are on Debian / Ubuntu, you can do
>>      sudo apt-get install r-cran-mvtnorm
>> as we provide a prebuild version.
>>
>> Dirk
>>
>> --
>> Three out of two people have difficulties with fractions.
>>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>



-- 
Stephen Sefick

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis




More information about the R-help mailing list