[R] Cannot run install binary package on Windows 8

2015-04-11 Thread Maciej Węgorkiewicz
Hi all,

I am just starting with R and cannot use lmtest package on Windows 8.
This package contains dwtest function that I am interested in.

I began with installing the core of R (with rgui) - version 3.1.3 64-bit.

Then I installed lmtest package using GUI menu, but after success
message I cannot run dwtest() getting message that the it cannot find
the function.

When I used installed.packages() function I saw lmtest on the list but
there was yes under the NeedsCompilation column. Does it mean I
need to compile the package in order to use it?

I uninstalled lmtest and tried to put binary Windows version by
downloading zip file from here:
http://cran.r-project.org/web/packages/lmtest/index.html

I took the file:
http://cran.r-project.org/bin/windows/contrib/3.1/lmtest_0.9-33.zip

downloaded it and tried to use the function of installing from local zip file.

However the effect was the same: NeedsCompilation set to true,
dwtest does not work.
The package contains binary file for 64-bit (DLLs).

What can I do in order to run this?

__
R-help@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.


Re: [R] Cannot run install binary package on Windows 8

2015-04-11 Thread Jeff Newmiller
Did you use the library function to load it into memory? You may need to 
practise with some simpler tasks using base R before you get too frustrated 
with using a contributed package. The Introduction to R document that is 
provided with R is worth your time.
---
Jeff NewmillerThe .   .  Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
--- 
Sent from my phone. Please excuse my brevity.

On April 11, 2015 10:39:41 AM PDT, Maciej Węgorkiewicz wegor...@gmail.com 
wrote:
Hi all,

I am just starting with R and cannot use lmtest package on Windows 8.
This package contains dwtest function that I am interested in.

I began with installing the core of R (with rgui) - version 3.1.3
64-bit.

Then I installed lmtest package using GUI menu, but after success
message I cannot run dwtest() getting message that the it cannot find
the function.

When I used installed.packages() function I saw lmtest on the list but
there was yes under the NeedsCompilation column. Does it mean I
need to compile the package in order to use it?

I uninstalled lmtest and tried to put binary Windows version by
downloading zip file from here:
http://cran.r-project.org/web/packages/lmtest/index.html

I took the file:
http://cran.r-project.org/bin/windows/contrib/3.1/lmtest_0.9-33.zip

downloaded it and tried to use the function of installing from local
zip file.

However the effect was the same: NeedsCompilation set to true,
dwtest does not work.
The package contains binary file for 64-bit (DLLs).

What can I do in order to run this?

__
R-help@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.

__
R-help@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.

Re: [R] Cannot run install binary package on Windows 8

2015-04-11 Thread John Kane
You need to load the library after you have installed the package.  Only 
libraries in the base R installation load automatically. Thus every time you 
want to use contributed package XXX you need to issue the command
library(XXX) or require(XXX) 

So at the top of your program try

library(lmtest)

You should be good to go.  Newbies often miss this step.

Good luck with R

John Kane
Kingston ON Canada


 -Original Message-
 From: wegor...@gmail.com
 Sent: Sat, 11 Apr 2015 19:39:41 +0200
 To: r-help@r-project.org
 Subject: [R] Cannot run install binary package on Windows 8
 
 Hi all,
 
 I am just starting with R and cannot use lmtest package on Windows 8.
 This package contains dwtest function that I am interested in.
 
 I began with installing the core of R (with rgui) - version 3.1.3 64-bit.
 
 Then I installed lmtest package using GUI menu, but after success
 message I cannot run dwtest() getting message that the it cannot find
 the function.
 
 When I used installed.packages() function I saw lmtest on the list but
 there was yes under the NeedsCompilation column. Does it mean I
 need to compile the package in order to use it?
 
 I uninstalled lmtest and tried to put binary Windows version by
 downloading zip file from here:
 http://cran.r-project.org/web/packages/lmtest/index.html
 
 I took the file:
 http://cran.r-project.org/bin/windows/contrib/3.1/lmtest_0.9-33.zip
 
 downloaded it and tried to use the function of installing from local zip
 file.
 
 However the effect was the same: NeedsCompilation set to true,
 dwtest does not work.
 The package contains binary file for 64-bit (DLLs).
 
 What can I do in order to run this?
 
 __
 R-help@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.


FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!

__
R-help@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.


Re: [R] Cannot run install binary package on Windows 8

2015-04-11 Thread Ben Bolker
Maciej Węgorkiewicz wegorkie at gmail.com writes:

 
 Hi all,
 
 I am just starting with R and cannot use lmtest package on Windows 8.
 This package contains dwtest function that I am interested in.
 
 I began with installing the core of R (with rgui) - version 3.1.3 64-bit.
 
 Then I installed lmtest package using GUI menu, but after success
 message I cannot run dwtest() getting message that the it cannot find
 the function.
 

  This sounds like R FAQ 7.30
http://cran.r-project.org/doc/FAQ/R-FAQ.html#
I-installed-a-package-but-the-functions-are-not-there

(URL broken to make gmane happy)

  Try library(lmtest).  Everything else you've done after 
initially installing the package sounds like a wild goose chase ...
__
R-help@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.