Re: [R] problem with package development and older defs earlier in search order

2012-11-10 Thread Martin J Reed
Rolf, Re version control: I use SVN and Git depending on the project I am working on and what others are using. Years ago I used RCS, as you say its great for a local repository (as is Git). The point I was making was not about version control but that others like me might get caught out by sav

Re: [R] problem with package development and older defs earlier in search order

2012-11-09 Thread Rolf Turner
On 10/11/12 12:08, Martin J Reed wrote: Rolf and Duncan Many thanks. Your answers pointed me to a refinement that is closer to what I want: rm(list=intersect(ls(".GlobalEnv"),ls("package:reedgraph")), pos=".GlobalEnv") This only removes items that are "masked" by GlobalEnv from my pa

Re: [R] problem with package development and older defs earlier in search order

2012-11-09 Thread Martin J Reed
Rolf and Duncan Many thanks. Your answers pointed me to a refinement that is closer to what I want: rm(list=intersect(ls(".GlobalEnv"),ls("package:reedgraph")), pos=".GlobalEnv") This only removes items that are "masked" by GlobalEnv from my package. As this is a bit long for some of th

Re: [R] problem with package development and older defs earlier in search order

2012-11-08 Thread Duncan Murdoch
On 12-11-07 7:11 PM, Martin J Reed wrote: Hi, I have a problem with a package I have developed in that functions do not get loaded due to older versions of the functions being in the .GlobalEnv’ fetched from .Rdata files stored from previous saved workspaces. I need to be able to fix this som

Re: [R] problem with package development and older defs earlier in search order

2012-11-07 Thread Rolf Turner
Suggestions: (1) Work in a different directory (so that you will have a different --- initially empty) .RData file. (2) Or: Clean up the .Rdata file in the directory that you are currently using; rm(list=ls()) does this for you. Every so slightly dangerous! :-) (3) Possibly: Before doin

[R] problem with package development and older defs earlier in search order

2012-11-07 Thread Martin J Reed
Hi, I have a problem with a package I have developed in that functions do not get loaded due to older versions of the functions being in the .GlobalEnv’ fetched from .Rdata files stored from previous saved workspaces. I need to be able to fix this somehow when I load the package. I do not want

Re: [R] Problem with package development

2011-06-03 Thread Rolf Turner
On 04/06/11 00:02, Barry Rowlingson wrote: . someone on StackOverflow was wondering why "0<= x<= 1" isn't a valid expression, neither in the context of what he expected (TRUE if x is between 0 and 1) nor how I explained it would function (as (0<=x)<= 1, and then comparing a TRUE/FALSE again

Re: [R] Problem with package development

2011-06-03 Thread Bert Gunter
A fortunes candidate?? -- Bert > > If you don't recognize the official r-project.org R-admin manual as a > legitimate > link then I'm afraid I also can't help you any further since there is nothing > more legitimate than the official documentation. > > Sarah > > -- > Sarah Goslee > http://www.fu

Re: [R] Problem with package development

2011-06-03 Thread Barry Rowlingson
On Fri, Jun 3, 2011 at 11:51 AM, Sarah Goslee wrote: > If you don't recognize the official r-project.org R-admin manual as a > legitimate > link then I'm afraid I also can't help you any further since there is nothing > more legitimate than the official documentation. Except the source code! P

Re: [R] Problem with package development

2011-06-03 Thread Sarah Goslee
On Thu, Jun 2, 2011 at 11:48 PM, Nipesh Bajaj wrote: > This is how strange? How and from where I would know that I need to > install something pdflatex separately? Can you point some legitimate > link which says I need to install that (like Rtools?) Even this link > 'http://www.math.rug.nl/~trente

Re: [R] Problem with package development

2011-06-02 Thread David Winsemius
On Jun 2, 2011, at 11:48 PM, Nipesh Bajaj wrote: This is how strange? How and from where I would know that I need to install something pdflatex separately? Can you point some legitimate link which says I need to install that (like Rtools?) Even this link 'http://www.math.rug.nl/~trentelman/jaco

Re: [R] Problem with package development

2011-06-02 Thread Joshua Wiley
Hi, I use MikTeX on Windows and it works like a charm. Here's the link: http://www.miktex.org/ I chose it after reading the installation manual: http://cran.r-project.org/doc/manuals/R-admin.html The entire thing is very helpful, but particularly note Appendix D, where you will find that for a

Re: [R] Problem with package development

2011-06-02 Thread Nipesh Bajaj
This is how strange? How and from where I would know that I need to install something pdflatex separately? Can you point some legitimate link which says I need to install that (like Rtools?) Even this link 'http://www.math.rug.nl/~trentelman/jacob/pdflatex/pdflatex.html' do not provide any download

Re: [R] Problem with package development

2011-06-02 Thread Duncan Murdoch
On 02/06/2011 2:30 PM, Nipesh Bajaj wrote: What else I need to do? In the Read-and-delete-me file following steps are asked to perform: * Edit the help file skeletons in 'man', possibly combining help files for multiple functions. * Edit the exports in 'NAMESPACE', and add necessary imports. * Pu

Re: [R] Problem with package development

2011-06-02 Thread Rolf Turner
On 03/06/11 12:16, Joshua Wiley wrote: Okay, that might have been a little strong. "screams bloody murder" is a warning, not technically an error, and does not occur when simply running R CMD build. That said, the OP did mention using R CMD check and pdflatex is not an issue when only building

Re: [R] Problem with package development

2011-06-02 Thread Joshua Wiley
Okay, that might have been a little strong. "screams bloody murder" is a warning, not technically an error, and does not occur when simply running R CMD build. That said, the OP did mention using R CMD check and pdflatex is not an issue when only building anyway. Still, it is not the cause of th

Re: [R] Problem with package development

2011-06-02 Thread Joshua Wiley
On Thu, Jun 2, 2011 at 4:49 PM, Rolf Turner wrote: > On 03/06/11 11:33, Joshua Wiley wrote: >> >> Hi, >> >> On Thu, Jun 2, 2011 at 11:30 AM, Nipesh Bajaj >>  wrote: >>> >>> I editied the help page for fn1() function (as I already communicated >>> in previous mail) as follows: >>> \name{fn1} >>> \a

Re: [R] Problem with package development

2011-06-02 Thread Rolf Turner
On 03/06/11 11:33, Joshua Wiley wrote: Hi, On Thu, Jun 2, 2011 at 11:30 AM, Nipesh Bajaj wrote: I editied the help page for fn1() function (as I already communicated in previous mail) as follows: \name{fn1} \alias{fn1} \title{ A function. } \description{ A function. } \usage{ A function. W

Re: [R] Problem with package development

2011-06-02 Thread Joshua Wiley
Hi, On Thu, Jun 2, 2011 at 11:30 AM, Nipesh Bajaj wrote: > I editied the help page for fn1() function (as I already communicated > in previous mail) as follows: > \name{fn1} > \alias{fn1} > > \title{ > A function. > } > > \description{ > A function. > } > > \usage{ > A function. What makes you t

Re: [R] Problem with package development

2011-06-02 Thread Sarah Goslee
I don't use windows, but this error message you report: >>> Error in texi2dvi("Rd2.tex", pdf = (out_ext == "pdf"), quiet = FALSE, : >>> pdflatex is not available >>> Error in running tools:: texi2dvi strongly indicates that you need to install pdflatex, don't you think? If you don't have non-R co

Re: [R] Problem with package development

2011-06-02 Thread Nipesh Bajaj
Still I am struggling to get some inputs from the experts here :( Definitely We can shere our experiences once I am done (really, it seems to me very hard nut to crack!) I strongly feel that related documentations should be more Statistician-friendly, than some Engg. guys Thanks, On Fri, Jun 3, 2

Re: [R] Problem with package development

2011-06-02 Thread steven mosher
I hope you're successful because I'm having issues as well building a simple package on windows. maybe when you're finished you can share back a step by step guide. On Thu, Jun 2, 2011 at 12:21 PM, Nipesh Bajaj wrote: > I have run R CMD check trial1 and saw an error. This says that: > > * chec

Re: [R] Problem with package development

2011-06-02 Thread Nipesh Bajaj
I have run R CMD check trial1 and saw an error. This says that: * checking pdf version of manual without hyperrefs or index ... ERROR Re-running with no redirection of stdout/stderr. Hmm... looks like a package Error in texi2dvi("Rd2.tex", pdf = (out_ext == "pdf"), quiet = FALSE, : pdflatex is no

Re: [R] Problem with package development

2011-06-02 Thread Nipesh Bajaj
What else I need to do? In the Read-and-delete-me file following steps are asked to perform: * Edit the help file skeletons in 'man', possibly combining help files for multiple functions. * Edit the exports in 'NAMESPACE', and add necessary imports. * Put any C/C++/Fortran code in 'src'. * If you h

Re: [R] Problem with package development

2011-06-02 Thread Duncan Murdoch
On 02/06/2011 2:03 PM, Nipesh Bajaj wrote: Thanks Prof. Ripley and Duncan for your pointers. Noting down your points I have modified my way of building package and have done following so far: 1. In my C: drive I create one working folder naming "R_PackageBuild" 2. In R console I have written fol

Re: [R] Problem with package development

2011-06-02 Thread Nipesh Bajaj
Thanks Prof. Ripley and Duncan for your pointers. Noting down your points I have modified my way of building package and have done following so far: 1. In my C: drive I create one working folder naming "R_PackageBuild" 2. In R console I have written following codes: > setwd("c:/R_packageBuild") >

Re: [R] Problem with package development

2011-05-31 Thread Prof Brian Ripley
On Wed, 1 Jun 2011, Nipesh Bajaj wrote: I have been struggling for last one hour but not yet any through. However again I recreate the package.skeleton and run R CMD check trial3 Here are the errors: warning in dir.create(pkgoutdir, mode = "0755"): cannot create dir 'c:\Program files\R\R-2.13

Re: [R] Problem with package development

2011-05-31 Thread Duncan Murdoch
On 11-05-31 4:58 PM, Nipesh Bajaj wrote: I have been struggling for last one hour but not yet any through. However again I recreate the package.skeleton and run R CMD check trial3 Here are the errors: warning in dir.create(pkgoutdir, mode = "0755"): cannot create dir 'c:\Program files\R\R-2.13

Re: [R] Problem with package development

2011-05-31 Thread Nipesh Bajaj
I have been struggling for last one hour but not yet any through. However again I recreate the package.skeleton and run R CMD check trial3 Here are the errors: warning in dir.create(pkgoutdir, mode = "0755"): cannot create dir 'c:\Program files\R\R-2.13.0\bin\trial3.Rcheck', reason .

Re: [R] Problem with package development

2011-05-31 Thread Nipesh Bajaj
Actually partly I followed. Here is the more details what I have done so far: 1. Edit the help file skeletons in 'man', possibly combining help files for multiple functions. I have modified with following: \name{fn1} \alias{fn1} \title{ A function. } \description{ A function. } \usage{ A functi

Re: [R] Problem with package development

2011-05-31 Thread Duncan Murdoch
On 11-05-31 3:36 PM, Nipesh Bajaj wrote: Dear all, I am having a strage problem while I was trying to build a package. Here is my package skeleton: fn1<- Vectorize(function(x,y,z) { return(x + y +z) }, vectorize.args = c("x"), SIMPLIFY = TRUE) package.skel

[R] Problem with package development

2011-05-31 Thread Nipesh Bajaj
Dear all, I am having a strage problem while I was trying to build a package. Here is my package skeleton: fn1 <- Vectorize(function(x,y,z) { return(x + y +z) }, vectorize.args = c("x"), SIMPLIFY = TRUE) package.skeleton("trial3",namespace = TRUE) However