Re: [Rd] SVN vs DVCS

2010-05-26 Thread Seth Falcon
m 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 F

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

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

2010-04-21 Thread Seth Falcon
vectors 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-p

Re: [Rd] transient memory allocation and external pointers

2010-04-20 Thread Seth Falcon
ght pattern 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
xternal pointer 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 Falc

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

2010-04-07 Thread Seth Falcon
e on an internal API Rd page. Create an Rd file like yourPkg-internal-api.Rd and add the appropriate \alias{} 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: selectMethod("coe

Re: [Rd] Difference Linux / Windows

2010-03-31 Thread Seth Falcon
quires editing the Rd files to make the contents 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] Suggestion: Not having to export .conflicts.OK in name spaces

2010-03-22 Thread Seth Falcon
On 3/22/10 3:57 AM, Martin Maechler wrote: "SF" == Seth Falcon on Fri, 19 Mar 2010 13:47:17 -0700 writes: SF> On 3/17/10 9:11 AM, Henrik Bengtsson wrote: >> Currently library() and attach() fail to locate an >> existing '.conflicts.O

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 co

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 > kno

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

2010-03-19 Thread Seth Falcon
methods should look 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 | @sf

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

2010-03-19 Thread Seth Falcon
rent lack of checking is a "feature". I would be interested 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] 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] 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.

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 th

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] [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
might be saved to disk now or in the future. I agree with your reading: this is a temporary hash table and there would 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

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
the dimension 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

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

2010-02-11 Thread Seth Falcon
n example. Quote from manual: 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 __

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

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] calling setGeneric() twice

2010-01-19 Thread Seth Falcon
on why you are using multiple calls 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] 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) >> ... >

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 b

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

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 > wrote: >> On Thu, Dec 31, 2009 at 11:27 PM, Peng Yu wrote: >>> I don't see where describes the implementation of '[]'. >>> >>> For example, if x is a matrix or a data.frame, how the lookup of >>> 'colname1' is

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

2009-12-05 Thread Seth Falcon
d files. I 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

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 feasible

Re: [Rd] error checks

2009-11-13 Thread Seth Falcon
{ f(TRUE) # 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 ___

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] 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) a

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) i

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)); PROTECT(portVal=R_tryEval(e,R_Globa

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 lang4

Re: [Rd] (PR#14012)

2009-10-17 Thread Seth Falcon
purpose of Rscript is to enable R script execution on unix-like systems like: #!/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 file

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
e R session in which you are doing development. The vignette in svUnit has 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-devel

Re: [Rd] build time dependency

2009-09-28 Thread Seth Falcon
ckage? Making it easy to do so is great, but in general if you can 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 : >  > 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. --

Re: [Rd] Rcmdr package dependencies

2009-09-22 Thread Seth Falcon
1", Rcmdr.Suggests) havePkgs <- installed.packages()[, "Package"] wantPkgs <- wantPkgs[!(wantPkgs %in% havePkgs)] 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
m. One slot should be an external pointer which will give you the ability to define a finalizer to clean 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
ng. CHARSXPs should never be exposed at the user level and should instead be elements of a character vector (STRSXP). + 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
at, one would have to look at the sources. 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/ _

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

2009-01-31 Thread Seth Falcon
ifferent run paths resulted 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] R crashes on sprintf with bad format specification (PR#13283)

2008-11-13 Thread Seth Falcon
intf (call=0x10cb470, op=0x1018924, args=, env=0x10a40b0) at ../../../../R-devel-all/src/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://us

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: libra

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","

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 amo

Re: [Rd] S4 coercion responsibility

2008-09-15 Thread Seth Falcon
is-a integer. The fact that the as() method dispatch doesn't match that of SQLiteConnection should really be that surprising. I don't see how this could be the responsibility of the author of the class you've subclassed. I would also quest

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

2008-06-13 Thread Seth Falcon
ovided by pkgA, then you can use the LinkingTo field 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
> in > RSQLite/src/RS-DBI.h I will see about 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 up

Re: [Rd] NAMESPACE & methods guidance, please

2008-06-01 Thread Seth Falcon
of namespaces, looking > in the search list seems a bad idea in principle. I agree that using the dynamic lookup when the static lookup is available is bad programming practice. However, given the flexibility of the current tools, it seems not unreasonable to expect that picking up a method via the se

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

2008-04-28 Thread Seth Falcon
majority of R's internal string processing functions use standard C semantics and truncated at first nul there has always been some room for "interesting" behavior. The change in R-2.7 was an attempt to start resolving these inconsistencies. Since then the core team has agr

Re: [Rd] Suggestion: isLoaded() to test if a package is loaded (without loading it)

2008-02-21 Thread Seth Falcon
ckageName(package, version); > } > pattern <- sprintf("package:%s", package); > (pattern %in% s); > } This only tests whether or not the given package is attached to the search path. You also (I think) want to search loaded namespaces. Bu

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 | [EMAI

Re: [Rd] segfault in gregexpr()

2008-01-30 Thread Seth Falcon
gexpr("", "abc", fixed=TRUE) [[1]] [1] 1 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 | [EMAI

Re: [Rd] isOpen on closed connections

2007-11-14 Thread Seth Falcon
= { > close(con) > }) This doesn't address isOpen, but why do you have the call to close inside the tryCatch block? Isn't the idea that finally will always be run and so you can be reasonably sure that close gets called once? If your real

Re: [Rd] package installation order

2007-11-14 Thread Seth Falcon
l probably already wrote it) but what you get from > getInstallOrder() should suit your needs here. makeDepGraph returns a graphNEL instance and Rgraphviz knows how to plot those. The entire graph will likely not produce a particularly compelling visualization. But you can subs

Re: [Rd] RSQLite indexing

2007-10-22 Thread Seth Falcon
he_size=64000 and synchronous=0 and that this was determined 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 sho

Re: [Rd] warning upon automatic close of connection

2007-09-12 Thread Seth Falcon
quot;yes" can write "yes" ## start new R session for (i in 1:75) file("foo") gc() warnings()[1:3] > gc() used (Mb) gc trigger (Mb) max used (Mb) Ncells 149603 4.0 35 9.4 35 9.4 Vcells 101924 0.8 786432 6.0 486908 3.8 There w

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

2007-08-31 Thread Seth Falcon
at R CMD check doesn't recurse really isn't a problem. You can have a driver script at the top-level that runs as many of the tests in subdirs as you want. And this is really a good thing since as you mentioned later in your response, some tests take a long time to run and prob

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

2007-08-28 Thread Seth Falcon
narrow it down, gctorture may help or running the examples under valgrind. + 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
ding up with multiple copies of the object on the R side during some of your operations. 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.

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

2007-08-18 Thread Seth Falcon
you from getting things done, or just 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 di

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

2007-08-18 Thread Seth Falcon
ly, 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 | 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] package dependencies

2007-08-15 Thread Seth Falcon
eck can not be executed. The error 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 Bi

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

2007-08-10 Thread Seth Falcon
i; SEXP cvect; 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

Re: [Rd] Using R_MakeExternalPtr

2007-07-25 Thread Seth Falcon
reateSession(attributes); > void* temp = session; It isn't clear from your example, 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,

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

2007-07-23 Thread Seth Falcon
gate other hashing functions since computing the next prime and doing so for resizes will take longer than not having to do it and it will add complexity to the code. + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center http:

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

2007-07-23 Thread Seth Falcon
t it might actually be useful to people. It's main use may turn out to be for investigating hash functions behavior and for a test tool it may be sufficient as-is. + 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] dict package: dictionary data structure for R

2007-07-21 Thread Seth Falcon
is what we see with an environment: > e = new.env(hash=T, size=2^14) > for (k in keys2) e[[k]] = k > summary(env.profile(e)$counts) Min. 1st Qu.Median Mean 3rd Qu. Max. 0.0.0.0.79350. 2700. -- Se

[Rd] dict package: dictionary data structure for R

2007-07-21 Thread Seth Falcon
userprimary.net/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.o

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

2007-07-21 Thread Seth Falcon
omplicate your desire to use X11(), but perhaps with Xvfb 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 |

Re: [Rd] S4 coerce

2007-07-16 Thread Seth Falcon
uot; > > setAs("TSconnection", "DBIConnection", def = function(from) [EMAIL > PROTECTED]) I think things work as you expect up until this pint. > > setIs("TSconnection", "DBIConnection", coerce = function(x) > > [EMAIL PROTECTED]) I'

Re: [Rd] Getting param names of primitives

2007-07-11 Thread Seth Falcon
ake sense so making it work seems like 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 Hut

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 o

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

2007-06-13 Thread Seth Falcon
tter to have outdated documents than crippled documents. I'm not trying to argue that the function shouldn't change, but if it is so annoying, you can also resolve this problem by defining your own step function and calling it (forgetting about withC

[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] bug in R environments? Was: [BioC] 'recursive default argument' error...

2007-06-12 Thread Seth Falcon
nt contains environments. The lazy loading db is important at runtime when users may only need to access one or two of the environments. We generate the lazy-loading dbs by hand so that users installing from source do not have to repeat the process themselves. Since the environments are lar

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

2007-06-11 Thread Seth Falcon
silenced. [Note 1: I don't have any 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 Bio

Re: [Rd] missing IntegerFromString()

2007-06-07 Thread Seth Falcon
CHARSXP, it does not work. > > So, how could I get the actual values in the column names? How about: SEXP colnums; int *ivals; PROTECT(colnums = coerceVector(cl, INTSXP)); ivals = INTEGER(colnums); Here you convert the STRSXP cl into an INTSXP. If you want the actual int

Re: [Rd] missing IntegerFromString()

2007-06-05 Thread Seth Falcon
ude/Rinternals.h Best Wishes, + seth PS: Nice to see you again :-) -- 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] HTML vignette browser

2007-06-04 Thread Seth Falcon
vailable to them -- I just had a question from someone who wanted to know 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

Re: [Rd] Possible changes to connections

2007-05-31 Thread Seth Falcon
> > http://wiki.r-project.org/rwiki/doku.php?id=developers:r_connections_api I wanted to voice a "me too" for wanting to see an interface 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

Re: [Rd] Possible changes to connections

2007-05-31 Thread Seth Falcon
e when coding R and it would be nice to make it work 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-30 Thread Seth Falcon
lected when no R object refers to them. This would 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). +

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

2007-05-30 Thread Seth Falcon
"TSdoc") <- value ; x }) > > setGeneric("TSdoc", >def= function(x) 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 TSd

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

2007-05-30 Thread Seth Falcon
methods for a generic documented elsewhere. + 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] Recent changes in R related to CHARSXPs

2007-05-25 Thread Seth Falcon
) Ncells 5837253 311.86910418 369.1 6193578 330.8 Vcells 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-de

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 >> disp

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 &

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

2007-05-21 Thread Seth Falcon
ure="flesh", function(flesh, skeleton=attr(flesh, "skeleton") standardGeneric("foo"))) + 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] Passing R CMD Check without data

2007-05-21 Thread Seth Falcon
lace under inst/). You might also look 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 Resea

  1   2   3   4   >