Re: [Rd] proposed changes to RSiteSearch

2009-05-07 Thread spencerg
1. Whatever we do with the "RSiteSearch" function, it should still be available every time R starts. If we put it in its own package, it should still be autoloaded with "base", "utils", "stats", etc. 2. Sundar indicated to me that, "if Jonathan would like to remove the search ca

Re: [Rd] R & Java

2009-05-14 Thread spencerg
I don't have an answer, but I suspect that if you install.packages("RSiteSearch"), you might find information relevant to your question from the following: library(RSiteSearch) java <- RSiteSearch.function('Java') summary(java) # Reports that 136 help pages contained "Java", 23 of which

Re: [Rd] proposed changes to RSiteSearch

2009-06-03 Thread spencerg
Hello All: What do you think of adding a function "RSiteSeach" to the package of that name, masking the "RSiteSearch" function in "utils", trapping any call RSiteSearch('searchstring', 'function') to the current RSiteSearch.function and passing all others to "utils:::RSiteSearch"? Thi

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread spencerg
Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 12:13 PM, Duncan Murdoch wrote: Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 1:58 AM, Duncan Murdoch wrote: spencerg wrote: Hello All: What do you think of adding a function "RSiteSeach" to the

Re: [Rd] proposed changes to RSiteSearch

2009-06-04 Thread spencerg
other name would smell as sweet, but one named "prettysweetsmellingthingamabob" might not sell as well. Thanks, Spencer Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 12:13 PM, Duncan Murdoch wrote: Gabor Grothendieck wrote: On Thu, Jun 4, 2009 at 1:58

Re: [Rd] proposed changes to RSiteSearch

2009-06-05 Thread spencerg
Liaw, Andy wrote: From: spencerg Thank you all for your suggestions. My goal with this is to make it as easy as possible for R users to find what they want in contributed packages. A referee for our "R Journal" manuscript complained that "RSiteSearch.function&q

Re: [Rd] proposed changes to RSiteSearch

2009-06-05 Thread spencerg
you think? I've made this as two steps, because I can do "1" myself, but I may need help to develop "2". Thanks again for all your suggestions. Best Wishes, Spencer Duncan Murdoch wrote: On 6/5/2009 9:41 AM, spencerg wrote: Liaw, Andy wrote: From: s

[Rd] install.packages with R 2.9.1 under Vista?

2009-06-30 Thread spencerg
What do I need to do to get "install.packages" to work properly for me in R 2.9.1 under Vista? Currently, install.packages in Rgui 2.9.1 by default goes to "C:\\Users\\sgraves\\Documents/R/win-library/2.9". This is a problem for me, because R running under Emacs does not current

Re: [Rd] install.packages with R 2.9.1 under Vista?

2009-06-30 Thread spencerg
other special thing like that, so I was confused. Thanks again. Best Wishes, Spencer Uwe Ligges wrote: spencerg wrote: What do I need to do to get "install.packages" to work properly for me in R 2.9.1 under Vista? Currently, install.packages in Rgui 2.

[Rd] Number of functions, data sets, ..., in a package?

2009-07-09 Thread spencerg
Hello: How can one get the number of functions and data sets in a package? I've written a function "PackageSum2" to get an extended package summary for an installed package. I get much of what I want from the object returned by "help(package=pkgName)". For example, "help(pac=

Re: [Rd] Number of functions, data sets, ..., in a package?

2009-07-09 Thread spencerg
Dear Gabor: Thanks very much. I will study "codoc" with great interest. (The code already uses "packageDescription".) Thanks again, Spencer Gabor Grothendieck wrote: On Thu, Jul 9, 2009 at 10:33 AM, spencerg wrote: Hello: How can one get the

[Rd] odbcConnectExcel on non-Windows?

2009-08-09 Thread spencerg
Hello: What should I do regarding code to write an Excel file in a non-Windows platform? The "sos" package [new version of "RSiteSearch"] on R-Forge includes "writeFindFn2xls", which starts with "require(RODBC)". The next line calls "odbcConnectExcel". This works under Window

Re: [Rd] odbcConnectExcel on non-Windows?

2009-08-09 Thread spencerg
LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] sos_1.0-5 brew_1.0-3 WriteXLS_1.8.1 ### Dirk Eddelbuettel wrote: On 9 August 2009 at

Re: [Rd] odbcConnectExcel on non-Windows?

2009-08-09 Thread spencerg
l can read, e.g. csv, with a suitable renaming of your function. On Sun, Aug 9, 2009 at 1:04 PM, spencerg wrote: Hello: What should I do regarding code to write an Excel file in a non-Windows platform? The "sos" package [new version of "RSiteSearch"] on R-Forge inclu

Re: [Rd] Non-GPL packages for R

2009-09-10 Thread spencerg
I will offer my opinion as a user and contributer to R packages via R-Forge and CRAN: 1. How difficult would it be to split CRAN into two parts, depending on whether the package carried an acceptable license allowing free distribution? The second might carry a name like RANC

Re: [Rd] Non-GPL packages for R

2009-09-11 Thread spencerg
Dirk Eddelbuettel wrote: On 11 September 2009 at 17:25, Kurt Hornik wrote: | I thought I had already explained the last time the GPL-only suggestion | came up that this will not happen for CRAN. | | But again: we have invested considerable time into getting the license | specs standardized, and

Re: [Rd] Because it's Friday. was creating environments in package's C code

2009-10-02 Thread spencerg
I hope you will forgive a serious comment on this thread, but the new "sos" package makes "greping through the headers" shockingly easy. It returns the 'RSiteSearch( ___ , "function")' information in a data.frame of class "findFn" sorted to put the package with the most matches first. Du

Re: [Rd] how to document stuff most users don't want to see

2009-10-05 Thread spencerg
There are many arguments in many functions that are rarely used. I prefer to see it all documented in the help pages. If they are not documented in the help pages (and sometimes even if they are), a user who wants them can invent other ways to get similar information with much greater effort,

Re: [Rd] unit testing for R packages?

2009-10-05 Thread spencerg
I put unit test in the examples, using "\dontshow" to hide "stopifnot". Many help pages I've written contain code like the following: A <- functionDocumentedHere() B <- manuallyComputedAnswer \dontshow{stopifnot(} all.equal(A, B) \dontshow{)} I think it helps the documentation to incl

Re: [Rd] unit testing for R packages?

2009-10-05 Thread spencerg
Hi, Duncan: Thanks for the warning. Can you give me a hint of which release might require this? In particular, will it be R 2.10.0, coming quite soon? Thanks, Spencer Duncan Murdoch wrote: On 05/10/2009 4:39 PM, spencerg wrote: I put unit test in the examples, using

Re: [Rd] how to document stuff most users don't want to see

2009-10-06 Thread spencerg
I write *.Rd files primarily because it helps me think through what I want the software to do AND because the "\examples" provide any degree of unit testing I feel I need to create "trustworth software" (to quote Chambers). The fact that I can then share the resulting package with others is a

Re: [Rd] CRAN Server download statistics (Was: R Usage Statistics)

2009-11-23 Thread spencerg
Beyond what Gabor said, I might download a package that uses "zoo", then use "zoo" directly in other contexts without ever downloading it directly. Total downloads would capture that; top level downloads would not. The flip side is that a package that requires "zoo" may only use it for featu

Re: [Rd] UML Class and Object Diagrams in R

2009-12-30 Thread spencerg
I'm not familiar with 'class and object diagrams', but have you tried the sos package available from CRAN via something like the following: library(sos) cod <- findFn('class and object diagram') cods <- findFn('class and object diagrams') (cod. <- cod|cods) summary(cod.) When I ran this

Re: [Rd] Darwinian software development and the library function

2010-02-12 Thread spencerg
Hi, Charlotte: I'm not sure what you mean. If you mean writing something like "print.foo (myfoo, ...)", this is relatively benign I suppose, but I avoid it where feasible. On multiple occasions, I've pushed collaborators and even maintainers of other packages to change this or allow