[R] Where can I download/install grDevices

408 views
Skip to first unread message

Stephen Liu

unread,
Aug 31, 2010, 7:50:39 AM8/31/10
to r-h...@r-project.org
Hi folks,

Debian 504 64 bit

grDevices is NOT on Debian repo

$ apt-cache search r-cran | grep grDevices
no printout

On R

$ sudo R
> install.packages("grDevices", dependencies=TRUE))
Warning in install.packages("grDevices") :
argument 'lib' is missing: using '/usr/local/lib/R/site-library'
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
Warning message:
In install.packages("grDevices") : package ‘grDevices’ is not available

Please advise where can I download/install grDevices? TIA

B.R.
Stephen L

______________________________________________
R-h...@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.

Dirk Eddelbuettel

unread,
Aug 31, 2010, 8:03:24 AM8/31/10
to Stephen Liu, r-h...@r-project.org
On Tue, Aug 31, 2010 at 04:50:39AM -0700, Stephen Liu wrote:
> Hi folks,
>
> Debian 504 64 bit
>
> grDevices is NOT on Debian repo
>
> $ apt-cache search r-cran | grep grDevices
> no printout
>
> On R
>
> $ sudo R
> > install.packages("grDevices", dependencies=TRUE))
> Warning in install.packages("grDevices") :
> argument 'lib' is missing: using '/usr/local/lib/R/site-library'
> --- Please select a CRAN mirror for use in this session ---
> Loading Tcl/Tk interface ... done
> Warning message:
> In install.packages("grDevices") : package ‘grDevices’ is not available
>
> Please advise where can I download/install grDevices? TIA

You're confused.

It is part of R itself, and on Debian et al in r-base-core:

edd@max:~$ dpkg -S /usr/lib/R/library/grDevices/DESCRIPTION
r-base-core: /usr/lib/R/library/grDevices/DESCRIPTION
edd@max:~$

Hth, Dirk

--
Three out of two people have difficulties with fractions.

Stephen Liu

unread,
Aug 31, 2010, 8:23:54 AM8/31/10
to r-h...@r-project.org
Hi Dirk,

I already have the package installed.

$ apt-cache policy r-base-core
r-base-core:
Installed: 2.7.1-1+lenny1
Candidate: 2.7.1-1+lenny1
Version table:
*** 2.7.1-1+lenny1 0
500 http://ftp.hk.debian.org lenny/main Packages
100 /var/lib/dpkg/status

$ dpkg -S /usr/lib/R/library/grDevices/DESCRIPTION
r-base-core: /usr/lib/R/library/grDevices/DESCRIPTION

It is there. But I can't find dev.new on R


B.R.
Stephen

Gavin Simpson

unread,
Aug 31, 2010, 1:44:39 PM8/31/10
to Stephen Liu, r-h...@r-project.org
On Tue, 2010-08-31 at 05:23 -0700, Stephen Liu wrote:
> Hi Dirk,
>
> I already have the package installed.
>
> $ apt-cache policy r-base-core
> r-base-core:
> Installed: 2.7.1-1+lenny1
> Candidate: 2.7.1-1+lenny1
> Version table:
> *** 2.7.1-1+lenny1 0
> 500 http://ftp.hk.debian.org lenny/main Packages
> 100 /var/lib/dpkg/status
>
> $ dpkg -S /usr/lib/R/library/grDevices/DESCRIPTION
> r-base-core: /usr/lib/R/library/grDevices/DESCRIPTION
>
> It is there. But I can't find dev.new on R

What do you mean by "can't find dev.new on R"? Do you want the source
code? At the R level?

dev.new

at the R prompt (yes, without parentheses) will show you that.

?dev.new

will give you the help page - you even showed me that this worked on
your system in another thread a few days ago, so it is there.

G

--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Dr. Gavin Simpson [t] +44 (0)20 7679 0522
ECRC, UCL Geography, [f] +44 (0)20 7679 0565
Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/
UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

Lizblip

unread,
Feb 10, 2011, 4:08:41 PM2/10/11
to r-h...@r-project.org

I get the same errors:

> plotmath(area~cell,main="Myofibril areas by cell",ylab=expression("Areas
> (mu*m^2)"),xlab="")
Error: could not find function "plotmath"

> install.packages("grDevices")


Warning in install.packages("grDevices") :
argument 'lib' is missing: using

'/home/elizabeth/R/i686-pc-linux-gnu-library/2.11'
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :


package ‘grDevices’ is not available

and when I just do this:
> install.packages()

grDevices isn't in the list that pops up


--
View this message in context: http://r.789695.n4.nabble.com/Where-can-I-download-install-grDevices-tp2401415p3300274.html
Sent from the R help mailing list archive at Nabble.com.

Duncan Murdoch

unread,
Feb 10, 2011, 7:10:11 PM2/10/11
to Lizblip, r-h...@r-project.org
On 10/02/2011 4:08 PM, Lizblip wrote:
>
> I get the same errors:
>
>> plotmath(area~cell,main="Myofibril areas by cell",ylab=expression("Areas
>> (mu*m^2)"),xlab="")
> Error: could not find function "plotmath"

There is no plotmath function. "plotmath" is the name of the help
topic; it describes how various other functions plot text that includes
math.

>
>> install.packages("grDevices")
> Warning in install.packages("grDevices") :

grDevices is a base package, so if you've got R, you've got it.

Duncan Murdoch

> argument 'lib' is missing: using
> '/home/elizabeth/R/i686-pc-linux-gnu-library/2.11'
> Warning message:
> In getDependencies(pkgs, dependencies, available, lib) :
> package ‘grDevices’ is not available
>
> and when I just do this:
>> install.packages()
>
> grDevices isn't in the list that pops up
>
>

______________________________________________

Lizblip

unread,
Feb 10, 2011, 7:32:32 PM2/10/11
to r-h...@r-project.org

Duncan Murdoch-2 wrote:
>
>
> There is no plotmath function. "plotmath" is the name of the help
> topic; it describes how various other functions plot text that includes
> math.
>
>

> grDevices is a base package, so if you've got R, you've got it.
>
> Duncan Murdoch
>
>

ok thanks.

I originally thought this was the case and first tried:

> plot(areas~cell,ylab=expression("Areas (mu*m^2"))

but the text wasn't re-formatted so I thought plotmath must be a separate
function. How is it supposed to work?
--
View this message in context: http://r.789695.n4.nabble.com/Where-can-I-download-install-grDevices-tp2401415p3300559.html


Sent from the R help mailing list archive at Nabble.com.

______________________________________________

Dennis Murphy

unread,
Feb 10, 2011, 9:41:12 PM2/10/11
to Lizblip, r-h...@r-project.org
Hi:

Here's one way:

plot(1~1,ylab=expression("Areas ("~mu*m^2~")"))

The tildes incorporate space between the math and text elements; they're
optional, but useful. Another way that also works is

plot(1~1,ylab=expression(paste("Areas (", mu*m^2, ")", sep = ' ')))

HTH,
Dennis

[[alternative HTML version deleted]]

Peter Ehlers

unread,
Feb 11, 2011, 12:35:46 PM2/11/11
to Dennis Murphy, r-h...@r-project.org, Lizblip
On 2011-02-10 18:41, Dennis Murphy wrote:
> Hi:
>
> Here's one way:
>
> plot(1~1,ylab=expression("Areas ("~mu*m^2~")"))
>
> The tildes incorporate space between the math and text elements; they're
> optional, but useful. Another way that also works is
>
> plot(1~1,ylab=expression(paste("Areas (", mu*m^2, ")", sep = ' ')))

plot(1:5, type="n", axes=FALSE, ann=FALSE)
abline(v=3, col="lightgray")
text(3, 3.5, expression(
paste("Areas (", mu * m^2, ")", sep = " ")))
text(3, 3.0, expression(
paste("Areas (", mu * m^2, ")", sep = "xxxx")))
text(3, 2.5, expression(
paste("Areas (", mu * m^2, ")", "xxxx")))


Peter Ehlers

Lizblip

unread,
Feb 11, 2011, 5:43:43 PM2/11/11
to r-h...@r-project.org

djmuseR wrote:
>
>
> Here's one way:
>
> plot(1~1,ylab=expression("Areas ("~mu*m^2~")"))
>
> The tildes incorporate space between the math and text elements; they're
> optional, but useful.
>
>

This worked, thanks!
Elizabeth

--
View this message in context: http://r.789695.n4.nabble.com/Where-can-I-download-install-grDevices-tp2401415p3302154.html

Reply all
Reply to author
Forward
0 new messages