[Rd] attach 'name' argument ignored with a file?

2011-12-23 Thread Xavier Robin
Dear experRts, I have the feeling that the 'name' argument to the attach function is ignored when 'what' is a file name. Here is an example: save(letters, file="letters.RData") letters.env <- attach("letters.RData", name="letters") search() letters.env The name on the search path is "fil

[Rd] adding packages R 2.14.0

2011-12-23 Thread RogerP
Well, I was able to build R 2.14.0 on my Solaris x86 machine, with a lot of work and some help. Thanks! At first the update.packages() would not work because some of the .so files that came with R were 32 - not 64 bit. I was able to install them and so now the update.packages() works. I still hav

Re: [Rd] attach 'name' argument ignored with a file?

2011-12-23 Thread Prof Brian Ripley
On Thu, 22 Dec 2011, Xavier Robin wrote: Dear experRts, I have the feeling that the 'name' argument to the attach function is ignored when 'what' is a file name. Here is an example: In current R (2.14.1) it is documented to not be used in that case (and it is not). save(letters, file="le

Re: [Rd] adding packages R 2.14.0

2011-12-23 Thread Uwe Ligges
On 22.12.2011 19:13, RogerP wrote: Well, I was able to build R 2.14.0 on my Solaris x86 machine, with a lot of work and some help. Thanks! At first the update.packages() would not work because some of the .so files that came with R were 32 - not 64 bit. You compiled R yourself from sources.

[Rd] Debugging namespace problems

2011-12-23 Thread Hadley Wickham
Hi all, I frequently find that I've failed to export something in my NAMESPACE and hence my package doesn't work when it's imported into another package. Does anyone have suggestion for debugging this type of problem? R CMD check passes without any ns related errors on both the importee and the i

Re: [Rd] Debugging namespace problems

2011-12-23 Thread Hadley Wickham
I should add that I'm pretty sure this is something wrong with the ggplot2 NAMESPACE because if I explicitly attach ggplot2 the code works: > library(nstest) > my_plot() Error in UseMethod("scale_dimension") : no applicable method for 'scale_dimension' applied to an object of class "NULL" > libr

Re: [Rd] Debugging namespace problems

2011-12-23 Thread Hadley Wickham
And one last note: I'm reasonably certain I haven't forgotten to export an S3 method because I wrote the following script to (crudely) compare the function definitions in ggplot2 with its namespace: ns <- parseNamespaceFile("ggplot", "~/Documents/ggplot/") s3e <- paste(ns$S3methods[, 1], ns$S

Re: [Rd] Debugging namespace problems

2011-12-23 Thread Martin Morgan
On 12/23/2011 11:54 AM, Hadley Wickham wrote: And one last note: I'm reasonably certain I haven't forgotten to export an S3 method because I wrote the following script to (crudely) compare the function definitions in ggplot2 with its namespace: ns<- parseNamespaceFile("ggplot", "~/Documents/g

Re: [Rd] Debugging namespace problems

2011-12-23 Thread Martin Morgan
On 12/23/2011 02:11 PM, Martin Morgan wrote: On 12/23/2011 11:54 AM, Hadley Wickham wrote: And one last note: I'm reasonably certain I haven't forgotten to export an S3 method because I wrote the following script to (crudely) compare the function definitions in ggplot2 with its namespace: ns<-

Re: [Rd] Debugging namespace problems

2011-12-23 Thread Hadley Wickham
>> in scales_add_defaults, where the symbol isn't found in the globalenv() >> when nstest is attached and ggplot2 only loaded, but is (via the search >> path) when ggplot2 is attached. > > and topenv(parent.frame()) is a replacement that gets to .GlobalEnv for > ggplot2, and to the name space for n

Re: [Rd] Debugging namespace problems

2011-12-23 Thread Martin Morgan
On 12/23/2011 02:38 PM, Hadley Wickham wrote: in scales_add_defaults, where the symbol isn't found in the globalenv() when nstest is attached and ggplot2 only loaded, but is (via the search path) when ggplot2 is attached. and topenv(parent.frame()) is a replacement that gets to .GlobalEnv for g

Re: [Rd] latest Rtools missing "inconsolita.sty"

2011-12-23 Thread Spencer Graves
Hi, Duncan & Uwe: Thanks for your suggestions. I uninstalled and reinstalled MiKTeX, and the problem went away. MiKTeX seems to malfunction when installed anyplace but the default location. Because of security problems I had had with Vista, I've been installing things like R