Re: [Rd] SVN vs DVCS

2010-05-26 Thread Seth Falcon
the initial repo clone, working via git-svn was noticeably faster than straight svn client (!) -- I think related to how the tools organize the working copy and how many fstat calls they make. - I find the log reviewing functionality much better suited to reviewing changes. + seth -- Seth Falcon

Re: [Rd] Resolving functions using R's namespace mechanism can double runtime

2010-04-27 Thread Seth Falcon
, you could do: myfoo - pkgname::foo And then later call myfoo() and I don't think you will see the added cost. You can formalize the above approach in package code by renaming function in the importFrom directive where I believe you can do: importFrom(pkgname, myfoo=foo) + seth -- Seth Falcon

Re: [Rd] suggestion how to use memcpy in duplicate.c

2010-04-21 Thread Seth Falcon
is something that I would expect to happen fairly often in many applications of R. Is for() faster on small blocks by enough that one would want to branch based on size? + seth -- Seth Falcon | @sfalcon | http://userprimary.net/ __ R-devel@r-project.org

Re: [Rd] transient memory allocation and external pointers

2010-04-20 Thread Seth Falcon
of allocation such that data will be written over the memory that your invalid external pointer points to. + seth -- Seth Falcon | @sfalcon | http://userprimary.net/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] transient memory allocation and external pointers

2010-04-19 Thread Seth Falcon
that will do any required cleanup and then call Free. If instead you want to have an externally managed SEXP, you could put it in the protected slot of the external pointer, but then you should allocate it using standard R allocation functions. + seth -- Seth Falcon | @sfalcon | http

Re: [Rd] generic '[' for a non-exported class

2010-04-07 Thread Seth Falcon
{} lines to it. + seth -- Seth Falcon | @sfalcon | http://userprimary.net/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] as(1:4, numeric) versus as.numeric(1:4, numeric)

2010-04-01 Thread Seth Falcon
On 3/31/10 4:52 PM, John Chambers wrote: The example is confusing and debatable, but not an obvious bug. And your presentation of it is the cause of much of the confusion (unintentionally I'm sure). To restate the issue (I think): In a new R session if you happen to call:

Re: [Rd] Difference Linux / Windows

2010-03-31 Thread Seth Falcon
sensible (you can't just remove the #ifdef's). Patches along these lines would be welcome. + seth -- Seth Falcon | @sfalcon | http://userprimary.net/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] update.packages(1)

2010-03-27 Thread Seth Falcon
On 3/27/10 1:43 PM, Duncan Murdoch wrote: On 25/03/2010 3:16 PM, Arni Magnusson wrote: I'm relaying a question from my institute's sysadmin: Would it be possible to modify update.packages() and related functions so that 'lib.loc' accepts integer values to specify a library from the

Re: [Rd] list_files() memory corruption?

2010-03-22 Thread Seth Falcon
On 3/20/10 2:03 PM, Seth Falcon wrote: On 3/20/10 1:36 PM, Alistair Gee wrote: I fixed my build problems. I also noticed that my patch wasn't correct, so I have attached a new version. This fix still grows the vector by doubling it until it is big enough, but the length is reset to the correct

Re: [Rd] Suggestion: Not having to export .conflicts.OK in name spaces

2010-03-22 Thread Seth Falcon
that .conflicts.OK is OK. Are there package authors who realize they do not know what they are doing enough to keep the warning messages :-P + seth -- Seth Falcon | @sfalcon | http://userprimary.net/ __ R-devel@r-project.org mailing list https

Re: [Rd] list_files() memory corruption?

2010-03-20 Thread Seth Falcon
On 3/20/10 1:36 PM, Alistair Gee wrote: I fixed my build problems. I also noticed that my patch wasn't correct, so I have attached a new version. This fix still grows the vector by doubling it until it is big enough, but the length is reset to the correct size at the end once it is known.

Re: [Rd] DESCRIPTION: Imports: assertion of version?

2010-03-19 Thread Seth Falcon
in a patch (with testing) for this. + seth -- Seth Falcon | @sfalcon | http://userprimary.net/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Suggestion: Not having to export .conflicts.OK in name spaces

2010-03-19 Thread Seth Falcon
for '.conflicts.OK' even if it is not exported. I guess I agree that there is no real value in forcing .conflicts.OK to be exported. OTOH, this seems like a dubious feature to begin. When is it a good idea to use it? + seth -- Seth Falcon | @sfalcon | http://userprimary.net

Re: [Rd] list_files() memory corruption?

2010-03-17 Thread Seth Falcon
On 3/17/10 7:16 AM, Alistair Gee wrote: Yes. I had noticed that R occasionally segfaults (especially when I run many concurrent R processes), so I used valgrind to log every use of R. In the valgrind logs, I tracked the problem to list_files(). I attached a patch to platform.c (for trunk).

Re: [Rd] Segfault Problem c++ R interface (detailed)

2010-03-15 Thread Seth Falcon
Hi, First thing to observe is that you are calling RSymbReg via .Call, but that function does not return SEXP as is required by the .Call interface. + seth __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] list_files() memory corruption?

2010-03-15 Thread Seth Falcon
Hi Alistair, On 3/12/10 4:37 PM, Alistair Gee wrote: I am using R-2-10 from subversion. In the implementation of do_listfiles() in platform.c, it appears to allocate a vector of length count where count is calculated by count_files(). It then proceeds to call list_files(), passing in the

Re: [Rd] list_files() memory corruption?

2010-03-15 Thread Seth Falcon
On 3/15/10 8:37 PM, Alistair Gee wrote: I think I have a fix that avoids the problem by just growing the vector as necessary as the directory is traversed (and no longer uses count_lines()). I don't have access to the code at the moment, but I should be able to post the patch tomorrow. Is

Re: [Rd] [PATCH] R ignores PATH_MAX and fails in long directories (PR#14228)

2010-03-11 Thread Seth Falcon
On 3/11/10 12:45 AM, Henrik Bengtsson wrote: Thanks for the troubleshooting, I just want to second this patch; it would be great if PATH_MAX could be used everywhere. The patch, or at least something quite similar, was applied in r51229. + seth -- Seth Falcon | @sfalcon | http

Re: [Rd] shash in unique.c

2010-03-05 Thread Seth Falcon
be little reason to want to save it (it is not saved now). + seth -- Seth Falcon | @sfalcon | http://userprimary.net/user __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Rubbish values written with zero-length vectors (PR#14217)

2010-02-20 Thread Seth Falcon
On 2/20/10 7:50 AM, Peter Dalgaard wrote: You don't want to understand, believe me! ;-) It's a bug, probably not the very worst kind, but accessing memory that isn't yours is potentially harmful (but writing to it is considerably worse). Looks like the issue only concerns the right hand

Re: [Rd] R_LIBS_USER bugs

2010-02-17 Thread Seth Falcon
Hi, On 2/16/10 10:31 AM, Jens Elkner wrote: Having currently a big problem with R 2.10.1 vanilla (Solaris): As soon as the R_LIBS_USER env var gets bigger than 1023 chars R completely ignores it and uses the default: I guess the first question is, why do need such a long list of library

Re: [Rd] Unexpected behaviour of x[i] when i is a matrix, on Windows

2010-02-12 Thread Seth Falcon
names. NA indices are propagated to the result. Unmatched values and are not allowed and result in an error. Cheers, + seth -- Seth Falcon | @sfalcon | http://userprimary.net/user __ R-devel@r-project.org mailing list https

Re: [Rd] Compiling R projects with multiple external libraries

2010-02-11 Thread Seth Falcon
: If you want to create and then link to a library, say using code in a subdirectory, use something like .PHONY: all mylibs all: $(SHLIB) $(SHLIB): mylibs mylibs: (cd subdir; make) + seth -- Seth Falcon | @sfalcon | http://userprimary.net/user __ R-devel

Re: [Rd] src/main/platform.c (PR#14198)

2010-01-28 Thread Seth Falcon
On 1/28/10 3:50 AM, a.r.runna...@kent.ac.uk wrote: At line 312 in src/main/platform.c (at the latest svn revision, 51039): if (length(tl)= 1 || !isNull(STRING_ELT(tl, 0))) should not '||' read ''? Likewise four lines later. Thanks, I'll fix this up. + seth -- Seth Falcon | @sfalcon

Re: [Rd] calling setGeneric() twice

2010-01-19 Thread Seth Falcon
to setGeneric. That seems like a very odd thing to do. + seth -- Seth Falcon | @sfalcon | http://userprimary.net/user __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] calling setGeneric() twice

2010-01-19 Thread Seth Falcon
On 1/19/10 11:19 AM, Ross Boylan wrote: If files that were read in later in the sequence extended an existing generic, I omitted the setGeneric(). I had to resequence the order in which the files were read to avoid some undefined slot classes warnings. The resequencing created other problems,

Re: [Rd] optional package dependency

2010-01-16 Thread Seth Falcon
On 1/15/10 7:51 AM, Uwe Ligges wrote: the Windows checks for CRAN run with that setting, i.e. _R_CHECK_FORCE_SUGGESTS_=false Hence the multicore issue mentioned below actually does not exist. I did not know that the Windows checks for CRAN used this setting. My concern was initiated by a

Re: [Rd] optional package dependency

2010-01-16 Thread Seth Falcon
On 1/15/10 7:47 AM, Simon Urbanek wrote: On Jan 15, 2010, at 10:22 , Seth Falcon wrote: I believe another option is: pkg - somePkg pkgAvail - require(pkg, character.only = TRUE) if (pkgAvail) ... else ... That is not an option - that is the code you usually use

Re: [Rd] optional package dependency

2010-01-15 Thread Seth Falcon
On 1/15/10 12:19 AM, Kurt Hornik wrote: Jeff Ryan writes: Hi Ross, The quantmod package makes available routines from a variety of contributed packages, but gets around your issues with a bit of, um, trickery. Take a look here (unless your name is Kurt ;-) ): I believe another option

Re: [Rd] How x[, 'colname1'] is implemented?

2010-01-01 Thread Seth Falcon
On 1/1/10 1:40 PM, Peng Yu wrote: On Fri, Jan 1, 2010 at 6:52 AM, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote: On Thu, Dec 31, 2009 at 11:27 PM, Peng Yu pengyu...@gmail.com wrote: I don't see where describes the implementation of '[]'. For example, if x is a matrix or a data.frame,

Re: [Rd] Error in namespaceExport(ns, exports) :

2009-12-05 Thread Seth Falcon
also can't find them in any other function or help file. So does anybody know where these functions are still listed that causes this error? Are you sure they are not in your NAMESPACE file? -- Seth Falcon Program in Computational Biology | Fred Hutchinson Cancer Research Center

Re: [Rd] How to generate dependency file that can be used by gnu make?

2009-11-17 Thread Seth Falcon
On 11/17/09 5:02 AM, Peng Yu wrote: This may not easy to do, when the filename are not hard coded strings. For example, the variable 'filename' is a vector of strings. for (i in 1:length(filename)){ do something... save(,file=filename[i]) } That's right. I don't think there is a

Re: [Rd] error checks

2009-11-13 Thread Seth Falcon
) # this will raise an error FALSE # only get here if no error }, error = function(e) TRUE) ## verify we saw an error stopifnot(res) + seth -- Seth Falcon | @sfalcon | http://userprimary.net/users __ R-devel@r

Re: [Rd] typo in docs for unlink()

2009-11-11 Thread Seth Falcon
On 11/11/09 2:36 AM, Duncan Murdoch wrote: On 10/11/2009 11:16 PM, Tony Plate wrote: PS, I should have said that I'm reading the docs for unlink in R-2.10.0 on a Linux system. The docs that appear in a Windows installation of R are different (the Windows docs do not mention that not all systems

Re: [Rd] memory misuse in subscript code when rep() is called in odd way

2009-11-03 Thread Seth Falcon
Hi, On 11/3/09 2:28 PM, William Dunlap wrote: The following odd call to rep() gives somewhat random results: rep(1:4, 1:8, each=2) I've committed a fix for this to R-devel. I admit that I had to reread the rep man page as I first thought this was not a valid call to rep since times (1:8)

Re: [Rd] parse_Rd and/or lazyload problem

2009-11-03 Thread Seth Falcon
Hi, On 11/3/09 6:51 PM, mark.braving...@csiro.au wrote: file.copy( 'd:/temp/Rdiff.Rd', 'd:/temp/scrunge.Rd') # Rdiff.Rd from 'tools' package source eglist- list( scrunge=parse_Rd( 'd:/temp/scrunge.Rd')) tools:::makeLazyLoadDB( eglist, 'd:/temp/ll') e- new.env() lazyLoad( 'd:/temp/ll', e)

Re: [Rd] Help with lang4

2009-10-29 Thread Seth Falcon
On 10/29/09 7:00 AM, Abhijit Bera wrote: Hi I seem to have run into a situation where I have more than 3 arguments to pass to a function from C. the following functions help me build an expression for evaluation: lang lang2 lang3 lang4 What should one do if there are more arguments than

Re: [Rd] Help with lang4

2009-10-29 Thread Seth Falcon
On 10/29/09 7:38 AM, Abhijit Bera wrote: Can't find the source to Rf_lang* series of functions. :| But I'm thinking it should be like this correct me if I'm wrong: PROTECT(e=lang4(install(myfunction),arg1,arg2,arg3); PROTECT(SETCAR(CDR(e),portConstraints));

Re: [Rd] (PR#14012)

2009-10-17 Thread Seth Falcon
: #!/path/to/Rscript --vanilla print(1:10) So then I'm not sure how useful it is for Rscript to handle such files. Why not convert to a more common and portable line termination for your R script files? + seth -- Seth Falcon | @sfalcon | http://userprimary.net/user

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

2009-10-06 Thread Seth Falcon
-- Seth Falcon | @sfalcon | http://userprimary.net/user __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] unit testing for R packages?

2009-10-05 Thread Seth Falcon
an interesting approach for integrating unit testing into R CMD check via examples in an Rd file within the package. + seth -- Seth Falcon | @sfalcon | http://userprimary.net/user __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [Rd] build time dependency

2009-09-28 Thread Seth Falcon
find a way to reduce dependencies and have your package work, that is better. :-) + seth -- Seth Falcon | @sfalcon | http://userprimary.net/user __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] crash with NAs in subscripted assignment of a raw vector

2009-09-24 Thread Seth Falcon
2009/9/24 Hervé Pagès hpa...@fhcrc.org:   x - charToRaw(ABCDEFGx)   x[c(1:3, NA, 6)] - x[8]   *** caught segfault ***  address 0x8402423f, cause 'memory not mapped' Thanks for the report. I have a fix which I will commit after some testing. -- Seth Falcon | @sfalcon | http

Re: [Rd] Rcmdr package dependencies

2009-09-22 Thread Seth Falcon
)] install.packages(wantPkgs) + seth -- Seth Falcon | @sfalcon | http://userprimary.net/user __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] asking for suggestions: interface for a C++ class

2009-09-04 Thread Seth Falcon
up when the R level object gets gc'd. + seth -- Seth Falcon | @sfalcon | http://userprimary.net/user __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Conditional dependency between packages

2009-07-01 Thread Seth Falcon
Hi Jon, * On 2009-06-30 at 15:27 +0200 Jon Olav Skoien wrote: I work on two packages, pkg1 and pkg2 (in two different projects). pkg1 is quite generic, pkg2 tries to solve a particular problem within same field (geostatistics). Therefore, there might be users who want to use pkg2 as an

Re: [Rd] bug in Rf_PrintValue ?

2009-06-28 Thread Seth Falcon
). + seth -- Seth Falcon http://userprimary.net/user __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Side-effects of require() vs library() on x86_64 aka amd64

2009-01-31 Thread Seth Falcon
in different allocation patterns, one of which triggered the bug. + seth -- Seth Falcon | http://userprimary.net/user/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Side-effects of require() vs library() on x86_64 aka amd64

2009-01-31 Thread Seth Falcon
. But the above helps explain the behavior you saw; a --quite R will suppress some output and that will make a difference in terms of memory allocation. + seth -- Seth Falcon | http://userprimary.net/user/ __ R-devel@r-project.org mailing list https

Re: [Rd] R crashes on sprintf with bad format specification (PR#13283)

2008-11-13 Thread Seth Falcon
/main/sprintf.c:179 #5 0x003fe1af in do_internal (call=0x10cb4a8, op=0x100fc38, args=0x10a40e8, env=0x10a40b0) at ../../../../R-devel-all/src/main/names.c:1140 + seth -- Seth Falcon | http://userprimary.net/user/ __ R-devel@r-project.org mailing list

Re: [Rd] S4 coercion responsibility

2008-09-17 Thread Seth Falcon
A couple more comments... * On 2008-09-15 at 10:07 -0700 Seth Falcon wrote: The example is with RSQLite but the same thing happens with RMySQL, and other DBI packages. The use of as() within the various DBI packages should be re-evaluated. I suspect some of that code was among the first

Re: [Rd] S4 coercion responsibility

2008-09-17 Thread Seth Falcon
* On 2008-09-17 at 19:25 -0700 Seth Falcon wrote: In the latest R-devel code (svn r46542), this behaves differently (and works as you were hoping). I get: library(RSQLite) setClass(SQLConPlus, contains=c(SQLiteConnection,integer)) dd = data.frame(a=1:3, b=letters[1:3]) con

Re: [Rd] S4 coercion responsibility

2008-09-17 Thread Seth Falcon
Continuing to talk to myself here... * On 2008-09-17 at 21:06 -0700 Seth Falcon wrote: *argh* I'm certain this was working for me and yet when I try to reproduce in a new R shell it errors out. This looks like an infelicity in the methods caching. To make it work: library(RSQLite

Re: [Rd] S4 coercion responsibility

2008-09-15 Thread Seth Falcon
choice. Why not extend SQLiteConnection and add extra slots as you like. The dispatch will in this case be much easier to reason about. + seth -- Seth Falcon | http://userprimary.net/user/ __ R-devel@r-project.org mailing list https://stat.ethz.ch

Re: [Rd] how to install header files in package

2008-06-13 Thread Seth Falcon
in the DESCRIPTION file as described in Writing R Extensions in the Registering native routines section. + seth -- Seth Falcon | http://userprimary.net/user/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] RSQLite 0.6-9 uploaded to CRAN [was: RSQLite bug fix for install with icc]

2008-06-10 Thread Seth Falcon
Hi all, A new version of RSQLite has been uploaded to CRAN and should be available soon. This update contains a minor change to the C code that should improve compatibility on various unix OS. + seth -- Seth Falcon | http://userprimary.net/user

Re: [Rd] RSQLite bug fix for install with icc

2008-06-04 Thread Seth Falcon
making such a change. I suspect the correct fix is one that tweaks configure to determine where things are based on the current system (the current code is correct for gcc I believe). Anyhow, thanks for the report. I will try to have an update within a week. + seth -- Seth Falcon | http

Re: [Rd] NAMESPACE methods guidance, please

2008-06-01 Thread Seth Falcon
tools, it seems not unreasonable to expect that picking up a method via the search path would work in a package just as it does (should?) interactively. + seth -- Seth Falcon | http://userprimary.net/user/ __ R-devel@r-project.org mailing list https

Re: [Rd] R 2.7.0, match() and strings containing \0 - bug?

2008-04-28 Thread Seth Falcon
for embedded nul in character strings -- raw can be used when this is desired, and having nul terminated strings will make the code more consistent and easier to maintain going forward. Best Wishes, + seth -- Seth Falcon | http://userprimary.net/user/ __ R

Re: [Rd] segfault in gregexpr()

2008-01-31 Thread Seth Falcon
Hi again, Herve wrote: gregexpr(, abc, fixed=TRUE) *** caught segfault *** address 0x1c09000, cause 'memory not mapped' This should be fixed in latest svn. Thanks for the report. + seth -- Seth Falcon | [EMAIL PROTECTED] | blog: http://userprimary.net/user

Re: [Rd] segfault in gregexpr()

2008-01-30 Thread Seth Falcon
2 3 attr(,match.length) [1] 0 0 0 gregexpr(, abc, perl=TRUE) [[1]] [1] 1 2 3 attr(,match.length) [1] 0 0 0 + seth -- Seth Falcon | [EMAIL PROTECTED] | blog: http://userprimary.net/user/ __ R-devel@r-project.org

Re: [Rd] isOpen on closed connections

2007-11-14 Thread Seth Falcon
), error=function(e) FALSE) You could do similar with myClose and close a connection as many times as you'd like :-) + seth -- Seth Falcon | [EMAIL PROTECTED] | blog: http://userprimary.net/user/ __ R-devel@r-project.org mailing list https

Re: [Rd] RSQLite indexing

2007-10-22 Thread Seth Falcon
by a handful of experiments on typical annotation dbs. Columns with few levels may not benefit from an index. See this thread: http://thread.gmane.org/gmane.comp.db.sqlite.general/23683/focus=23693 But your column with many levels should suffer this problem :-) + seth -- Seth Falcon | [EMAIL

Re: [Rd] warning upon automatic close of connection

2007-09-12 Thread Seth Falcon
75 (foo)` NULL $`closing unused connection 74 (foo)` NULL -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center BioC: http://bioconductor.org/ Blog: http://userprimary.net/user/ __ R-devel@r-project.org mailing list https

Re: [Rd] R CMD check recursive copy of tests/

2007-08-31 Thread Seth Falcon
thing since as you mentioned later in your response, some tests take a long time to run and probably are best not automatically run during R CMD check. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center BioC: http://bioconductor.org/ Blog: http

Re: [Rd] R CMD check: Error in function (env) : could not find function finalize

2007-08-28 Thread Seth Falcon
. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center BioC: http://bioconductor.org/ Blog: http://userprimary.net/user/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] .Call and to reclaim the memory by allocVector

2007-08-25 Thread Seth Falcon
. I would recommend recompiling with --enable-memory-profiling and using tracemem() to see if you can identify places where copies of your large object are occurring. You can also take a look at Rprof(memory.profile=TRUE). + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer

Re: [Rd] Overriding S4 methods in an installed package

2007-08-18 Thread Seth Falcon
environment (omit the where arg) and test it that way. OTOH, if foo is used by pkg internally, then it will be much easier to simply edit the source for pkg, reinstall and test. If you find and fix a bug, most package maintainers will be quite happy to integrate your fix. + seth -- Seth Falcon

Re: [Rd] [R] Suspected memory leak with R v.2.5.x and large matrices with dimnames set

2007-08-18 Thread Seth Falcon
a concern that there is a leak that needs fixing? It is worth noting that the internal handling of character vectors has changed in R-devel and so IMO testing there would make sense before persuing this further, I suspect your results will be different. + seth -- Seth Falcon | Computational

Re: [Rd] package dependencies

2007-08-15 Thread Seth Falcon
message is: Instead of require(pkgname), simply list pkgname in the Depends field of your package's DESCRIPTION file. See the Writing R Extensions manual for details. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center BioC: http://bioconductor.org/ Blog: http

Re: [Rd] Convert multiple C strings into an R character vector

2007-08-10 Thread Seth Falcon
; PROTECT(cvect = allocVector(STRSXP, numStrings)); for (i = 0; i numStrings; i++) { SET_STRING_ELT(cvect, i, mkChar(yourStrings[i])); } UNPROTECT(cvect); return cvect; + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center BioC: http

Re: [Rd] Using R_MakeExternalPtr

2007-07-25 Thread Seth Falcon
, are you sure that temp is valid at this point? SEXP out = R_MakeExternalPtr(temp, R_NilValue, R_NilValue); I was expecting to see: SEXP out = R_MakeExternalPtr((void *)sesPtr, R_NilValue, R_NilValue); + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research

Re: [Rd] X11() dies in remote background

2007-07-21 Thread Seth Falcon
run from the screen session things will work. Do all of the graphics devices require access to X11()? I thought you could use pdf() for example, without X11() but I'm not certain. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org

[Rd] dict package: dictionary data structure for R

2007-07-21 Thread Seth Falcon
/software/dict_0.0.4.tar.gz Windows binary: R-2.5.x: http://userprimary.net/software/dict_0.0.4.zip + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org __ R-devel@r-project.org mailing list

Re: [Rd] dict package: dictionary data structure for R

2007-07-21 Thread Seth Falcon
summary(env.profile(e)$counts) Min. 1st Qu.Median Mean 3rd Qu. Max. 0.0.0.0.79350. 2700. -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org

Re: [Rd] S4 coerce

2007-07-16 Thread Seth Falcon
to be a DBIConnection, why wouldn't you use inheritance? setClass(TSconnection, contains=DBIConnection, ...) + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org __ R-devel@r-project.org mailing

Re: [Rd] Getting param names of primitives

2007-07-11 Thread Seth Falcon
a good idea. I'll agree that it working might encourage someone to try formals-(), but the fact that it cannot do anything but error seems like a strange reason not to make formals() work. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http

Re: [Rd] step() in sink() and Sweave()

2007-06-13 Thread Seth Falcon
withCallingHandlers). Clearly not ideal, but at the same time in the spirit of open source, no? + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org __ R-devel@r-project.org mailing list https

Re: [Rd] PATCH: install inst/ before doing lazyload on Windows

2007-06-13 Thread Seth Falcon
Seth Falcon [EMAIL PROTECTED] writes: On Windows, package files in the inst/ subdir are installed after the lazyload creation. This differs from Linux where inst/ is installed _before_ lazyload creation. Since packages may need data in inst, I think the order on Windows should be changed

[Rd] PATCH: install inst/ before doing lazyload on Windows

2007-06-12 Thread Seth Falcon
/MakePkg -s lazyload endif - @$(MAKE) --no-print-directory -f $(RHOME)/src/gnuwin32/MakePkg -s $(DPKG)/demo $(DPKG)/exec $(DPKG)/inst $(DATA) ifeq ($(strip $(LAZYDATA)),true) @$(MAKE) --no-print-directory -f $(RHOME)/src/gnuwin32/MakePkg -s lazydata endif -- Seth Falcon

Re: [Rd] package check note: no visible global function definition (in functions using Tcl/Tk)

2007-06-11 Thread Seth Falcon
ideas at the moment for how this could work.] [Note 2: Despite the false-positives, I've already caught a handful of bugs by reading over these NOTEs and think they provide a lot of value to the check process] + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center

Re: [Rd] missing IntegerFromString()

2007-06-08 Thread Seth Falcon
(cl, INTSXP)); ivals = INTEGER(colnums); Here you convert the STRSXP cl into an INTSXP. If you want the actual integer values, use the ivals pointer. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org

Re: [Rd] HTML vignette browser

2007-06-04 Thread Seth Falcon
how to make a plot that appeared in a vignette, for example. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [Rd] Possible changes to connections

2007-05-31 Thread Seth Falcon
for connections. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Possible changes to connections

2007-05-31 Thread Seth Falcon
added for working with connections from C in package code. There are a number of places where this would be useful and provide cleaner solution than what is possible today. The proposed interface looks useful. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center

Re: [Rd] S4 assignment \alias and \usage

2007-05-30 Thread Seth Falcon
codoc, etc, checks. If you have your own generic TSdoc-, then I think you want: \alias{TSdoc-} \alias{TSdoc-,someClass,anotherClass-method} You may not be allowed to specify usage, but I think the issue only arises when setting methods for a generic documented elsewhere. + seth -- Seth Falcon

Re: [Rd] S4 assignment \alias and \usage

2007-05-30 Thread Seth Falcon
) standardGeneric(TSdoc), useAsDefault= function(x) attr(x, TSdoc)) Aside: It seems odd to me to define such defaults. How do you know x is going to have a TSdoc attribute? -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org

Re: [Rd] Possible changes to connections

2007-05-30 Thread Seth Falcon
allow for example readLines(gzfile(foo.gz)) I think this would be a nice improvement as it matches what many people already assume happens as well as matches what some other languages do (in particular, Python). + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research

[Rd] Recent changes in R related to CHARSXPs

2007-05-25 Thread Seth Falcon
16831859 128.5 45712717 348.8 39456690 301.1 Best Wishes, + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] relist, an inverse operator to unlist

2007-05-23 Thread Seth Falcon
Andrew Clausen [EMAIL PROTECTED] writes: Hi Seth, On Mon, May 21, 2007 at 05:15:10PM -0700, Seth Falcon wrote: I will also add that the notion of a default argument on a generic function seems a bit odd to me. If an argument is available for dispatch, I just don't see what sense it makes

Re: [Rd] RFC: adding an 'exact' argument to [[

2007-05-22 Thread Seth Falcon
Hi again, Robert has committed the proposed patch to R-devel. So [[ now has an 'exact' argument and the behavior is as described: Seth Falcon [EMAIL PROTECTED] writes: 1. [[ gains an 'exact' argument with default value NA 2. Behavior of 'exact' argument: exact=NA

Re: [Rd] Passing R CMD Check without data

2007-05-21 Thread Seth Falcon
at the vsn package in Bioconductor which uses a Makefile to avoid R CMD check from building its vignette because it is too time consuming... + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org __ R

Re: [Rd] relist, an inverse operator to unlist

2007-05-21 Thread Seth Falcon
matching the missing class. What often does make sense is to define a generic function where some argument are not available for dispatch. For example: setGeneric(foo, signature=flesh, function(flesh, skeleton=attr(flesh, skeleton) standardGeneric(foo))) + seth -- Seth

Re: [Rd] RFC: adding an 'exact' argument to [[

2007-05-17 Thread Seth Falcon
. The recent integration of the completion code gives less typing and complete names. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org __ R-devel@r-project.org mailing list https://stat.ethz.ch

Re: [Rd] RFC: allow packages to advertise vignettes on Windows

2007-05-16 Thread Seth Falcon
. Comments from others in this thread suggest that there is a desire that this be an opt-in feature for package authors [I don't really understand this desire as it seems to me it should be a feature/decision of the GUI] and again vignette() doesn't help. + seth -- Seth Falcon | Computational Biology

[Rd] RFC: allow packages to advertise vignettes on Windows

2007-05-14 Thread Seth Falcon
, item, paste(shell.exec(\, as.character(i), \), sep = )) } } ## else ans - TRUE } else { ans - FALSE } ans } -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org

Re: [Rd] RFC: allow packages to advertise vignettes on Windows

2007-05-14 Thread Seth Falcon
into modifying the existing function to handle this. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Problem calling $ inside a $ method

2007-05-07 Thread Seth Falcon
is a hackish workaround. setMethod($, Foo, function(x, name) eval(substitute([EMAIL PROTECTED], list(FOO=name [1] $ f$bo [1] 1 f$al [1] 2 Other suggestions for workarounds? Is this a bug? + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer

Re: [Rd] Possible problem with S4 dispatch

2007-05-01 Thread Seth Falcon
might expect each import to be in the chain of parent environments. Instead all imports are merged into a single environment that is the parent of the package env. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http://bioconductor.org

  1   2   3   >