[Rd] Bug in order function

2017-09-14 Thread Karl Nordström
question: https://stackoverflow.com/questions/39737871/r-order-method-on-multiple-columns-gives-error-argument-lengths-differ It describes the problem well and suggests a solution. Although it is a niche case, it's a very easy thing to fix :) Best regards, Karl Nord

Re: [Rd] Control statements with condition with greater than one should give error (not just warning) [PATCH]

2017-03-07 Thread Karl Millar via R-devel
it, which you can fill in as questions arrive, so you don't get too many duplicated questions. Karl On Mon, Mar 6, 2017 at 4:51 AM, Martin Maechler wrote: > >>>>> Michael Lawrence > >>>>> on Sat, 4 Mar 2017 12:20:45 -0800 writes: > > &

Re: [Rd] unlicense

2017-01-17 Thread Karl Millar via R-devel
to dual-license packages with both an OSI-approved license and whatever-else-you-like, e.g. 'MIT | ', but IIUC there's a bunch more complexity there than just using an OSI-approved license. Karl On Tue, Jan 17, 2017 at 3:35 PM, Uwe Ligges wrote: > > > On 18.01.2017 00:13, Ka

Re: [Rd] unlicense

2017-01-17 Thread Karl Millar via R-devel
+ file LICENSE' means something very different than it presumably means to Uwe. Thanks, Karl On Sat, Jan 14, 2017 at 12:10 AM, Uwe Ligges wrote: > Dear all, > > from "Writing R Extensions": > > The string ‘Unlimited’, meaning that there are no restrictions on > d

Re: [Rd] Request: Increasing MAX_NUM_DLLS in Rdynload.c

2016-12-21 Thread Karl Millar via R-devel
LLs assume that the associated namespace exists. Currently what I do is to never unload DLLs. If I need to replace one, then I just restart R. It's less convenient, but it's always correct. On Wed, Dec 21, 2016 at 9:10 AM, Henrik Bengtsson wrote: > On Tue, Dec 20, 2016 at 7:39 AM, K

Re: [Rd] Request: Increasing MAX_NUM_DLLS in Rdynload.c

2016-12-20 Thread Karl Millar via R-devel
It's not always clear when it's safe to remove the DLL. The main problem that I'm aware of is that native objects with finalizers might still exist (created by R_RegisterCFinalizer etc). Even if there are no live references to such objects (which would be hard to verify), it still wouldn't be safe

Re: [Rd] Upgrading a package to which other packages are LinkingTo

2016-12-16 Thread Karl Millar via R-devel
less trouble than the general case of backwards compatibility. Karl On Fri, Dec 16, 2016 at 8:19 AM, Dirk Eddelbuettel wrote: > > On 16 December 2016 at 11:00, Duncan Murdoch wrote: > | On 16/12/2016 10:40 AM, Dirk Eddelbuettel wrote: > | > On 16 December 2016 at 10:14, Duncan

[Rd] Is importMethodsFrom actually needed?

2016-11-02 Thread Karl Millar via R-devel
will automatically work correctly without any need for importMethodsFrom. Is there something that I'm missing here? What breaks if you don't explicitly import methods? Thanks, Karl __ R-devel@r-project.org mailing list https://stat.ethz.

Re: [Rd] weird dir() behavior with broken symlinks

2016-10-18 Thread Karl Forner
#x27;) [1] TRUE > list.dirs(recursive=FALSE) [1] "./broken.txt" On Tue, Oct 18, 2016 at 3:08 PM, Karl Forner wrote: > I encountered very weird behavior of the dir() function, that I just can > not understand. > > Reproducible example: > > docker run -ti rocker/r-ba

[Rd] weird dir() behavior with broken symlinks

2016-10-18 Thread Karl Forner
again. The doc states: Should subdirectory names be included in # recursive listings? (They always are in non-recursive ones). >dir(recursive=TRUE, include.dirs=TRUE) [1] "to" Best, Karl [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Undocumented 'use.names' argument to c()

2016-09-23 Thread Karl Millar via R-devel
> >>> In S-PLUS 3.4 help on 'c' (http://www.uni-muenster.de/ >>> ZIV.BennoSueselbeck/s-html/helpfiles/c.html), there is no 'use.names' >>> argument. >>> >>> Because 'c' is a generic function, I don't think that chang

[Rd] Undocumented 'use.names' argument to c()

2016-09-20 Thread Karl Millar via R-devel
'c' has an undocumented 'use.names' argument. I'm not sure if this is a documentation or implementation bug. > c(a = 1) a 1 > c(a = 1, use.names = F) [1] 1 Karl __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] mcparallel (parallel:::mcexit) does not call finalizers

2016-06-16 Thread Karl Forner
not called). I was wondering if a modification of the parallel mcexit could be considered, to make it call the finalizers, possibly triggered by a parameter or an option, or if there are solid reasons not to do so. Regards, Karl Forner [[alternative HTML version dele

Re: [Rd] [patch] Support many columns in model.matrix

2016-02-29 Thread Karl Millar via R-devel
Thanks. Couldn't you implement model.matrix(..., sparse = TRUE) with a small amount of R code similar to MatrixModels::model.Matrix ? On Mon, Feb 29, 2016 at 10:01 AM, Martin Maechler wrote: >>>>>> Karl Millar via R-devel >>>>>>

[Rd] [patch] Support many columns in model.matrix

2016-02-26 Thread Karl Millar via R-devel
Generating a model matrix with very large numbers of columns overflows the stack and/or runs very slowly, due to the implementation of TrimRepeats(). This patch modifies it to use Rf_duplicated() to find the duplicates. This makes the running time linear in the number of columns and eliminates the

[Rd] MAX_NUM_DLLS too low ?

2015-05-08 Thread Karl Forner
dDLLs()))' gives 28 loaded DLLs. I am currently trying to work-around that by putting external packages in Suggests: instead of Imports:, and lazy-load them, but still I am wondering if that threshold value of 100 is still relevant nowadays, or would it be possible to increase it. Thanks, K

Re: [Rd] Recycling memory with a small free list

2015-02-19 Thread Karl Millar via R-devel
u won't be frequently requesting the same sized memory block. Those assumptions don't hold in R. On the other hand, I don't see much benefit to R having it's own logic for handling small allocations, as most malloc implementations handle those extremely efficiently. Karl On Thu, Fe

Re: [Rd] [PATCH] Makefile: add support for git svn clones

2015-01-19 Thread Karl Millar via R-devel
Fellipe, CXXR development has moved to github, and we haven't fixed up the build for using git yet. Could you send a pull request with your change to the repo at https://github.com/cxxr-devel/cxxr/? Also, this patch may be useful for pqR too. https://github.com/radfordneal/pqR Thanks On Mon, J

Re: [Rd] segfault when trying to allocate a large vector

2014-12-18 Thread Karl Millar via R-devel
Hi Pierrick, You're storing largevec on the stack, which is probably causing a stack overflow. Allocate largvec on the heap with malloc or one of the R memory allocation routines instead and it should work fine. Karl On Thu, Dec 18, 2014 at 12:00 AM, Pierrick Bruneau wrote: >

[Rd] Making parent.env<- an error for package namespaces and package imports

2014-10-16 Thread Karl Millar
code from subsequently messing with it. I'd also like to make calling parent.env<- on an environment on the call stack an error, for the same reasons, but it's not so obvious to me how to implement that efficiently right now. Could we at least document that as being 'undefin

Re: [Rd] Patch for R to fix some buffer overruns and add a missing PROTECT().

2014-09-23 Thread Karl Millar
Bug submitted. Thanks. On Tue, Sep 23, 2014 at 12:42 PM, Duncan Murdoch wrote: > On 23/09/2014 3:20 PM, Karl Millar wrote: >> >> This patch is against current svn and contains three classes of fix: >> - Ensure the result is properly terminated after calls to strncpy() &

[Rd] Patch for R to fix some buffer overruns and add a missing PROTECT().

2014-09-23 Thread Karl Millar
a warning. Thanks, Karl __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] isOpen() misbehaviour

2014-06-19 Thread Karl Forner
Thanks Joris, it makes sense now, though the doc is a bit misleading. On Thu, Jun 19, 2014 at 3:22 PM, Joris Meys wrote: > Hi Karl, > > that is expected. The moment you close a connection, it is destroyed as well > (see ?close). A destroyed connection cannot be tested. In fac

[Rd] isOpen() misbehaviour

2014-06-19 Thread Karl Forner
Is it expected ? Tested on R-3.0.2 and R version 3.1.0 Patched (2014-06-11 r65921) on linux x86_64 Karl __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] regression bug with getParseData and/or parse in R-3.1.0

2014-06-12 Thread Karl Forner
1 11 1 7 '{' TRUE{ 2 12 12 2 3 NUM_CONST TRUE1 3 12 12 3 7 exprFALSE 4 13 13 4 7 '}' TRUE} Karl On Thu, Jun 12, 2014 at 2:39 PM, Duncan Murdoch wrote:

[Rd] regression bug with getParseData and/or parse in R-3.1.0

2014-06-12 Thread Karl Forner
Hi, With R-3.1.0 I get: > getParseData(parse(text = "{1}", keep.source = TRUE)) line1 col1 line2 col2 id parent token terminal text 7 11 13 7 9 exprFALSE 1 11 11 1 7 '{' TRUE{ 2 12 12 2 3 NUM_CONST T

Re: [Rd] Rjulia: a package for R call Julia through Julia C API

2014-06-06 Thread Karl Forner
Excellent. By any chance are you aware of a julia way to perform the opposite: call R from julia ? Thanks On Fri, Jun 6, 2014 at 7:23 AM, Yu Gong wrote: > hello everyone,recently I write a package for R call Julia through Julia C > API > https://github.com/armgong/RJulia > now the package can d

Re: [Rd] Fwd: [RFC] A case for freezing CRAN

2014-03-21 Thread Karl Forner
On Fri, Mar 21, 2014 at 6:27 PM, Gábor Csárdi wrote: > On Fri, Mar 21, 2014 at 12:40 PM, Karl Forner wrote: > [...] > >> Hmm, what if your package depends on packages A and B, and that A depends >> on C v1.0 and B depends on C v1.1 ? This is just an example but I imagine &

Re: [Rd] Fwd: [RFC] A case for freezing CRAN

2014-03-21 Thread Karl Forner
> On Fri, Mar 21, 2014 at 12:08 PM, Karl Forner wrote: > [...] > > - "exact deps versions": >> will put a lot of burden of the developer. >> > > Not really, in my opinion, if you have the proper tools. Most likely when > you develop any given version

[Rd] Fwd: [RFC] A case for freezing CRAN

2014-03-21 Thread Karl Forner
p them consistent because the installed version depends on the moment you perform the install.packages(). So I second the Jeroen proposal to have a snapshot of packages versions tied to a given R version, well tested altogether. This implies as stated by Herve to keep all package source versions, and will

Re: [Rd] The case for freezing CRAN

2014-03-20 Thread Karl Millar
Given the version / dated snapshots of CRAN, and an agreement that reproducibility is the responsibility of the study author, the author simply needs to sync all their packages to a chosen date, run the analysis and publish the chosen date. It is true that this doesn't include compilers, OS, syste

Re: [Rd] [RFC] A case for freezing CRAN

2014-03-19 Thread Karl Millar
I think what you really want here is the ability to easily identify and sync to CRAN snapshots. The easy way to do this is setup a CRAN mirror, but back it up with version control, so that it's easy to reproduce the exact state of CRAN at any given point in time. CRAN's not particularly large and

Re: [Rd] [PATCH] Code coverage support proof of concept

2014-03-07 Thread Karl Forner
Here's an updated version of the patch that fixes a stack imbalance bug. N.B: the patch seems to work fine with R-3.0.2 too. On Wed, Mar 5, 2014 at 5:16 PM, Karl Forner wrote: > Hello, > > I submit a patch for review that implements code coverage tracing in > the R interpreter.

[Rd] [PATCH] Code coverage support proof of concept

2014-03-05 Thread Karl Forner
] 331 [2,] 801 $`.../testthat/R/colour-text.r` [,1] [,2] [1,] 181 [2,] 19 106 [3,] 20 106 [4,] 22 106 [5,] 23 106 [6,] 401 [7,] 591 [8,] 701 [9,] 71 106 ... Karl Forner Disclaimer - There are probably bugs and ugly stat

[Rd] Status of reserved keywords and builtins

2013-12-12 Thread Karl Millar
that this is valid, but hopefully there's little or no code that does. Thanks Karl __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] How to catch warnings sent by arguments of s4 methods ?

2013-12-02 Thread Karl Forner
to use the calling handlers. Best, Karl On Fri, Nov 29, 2013 at 11:30 AM, Karl Forner wrote: > Hello, > > I apologized if this had already been addressed, and I also submitted > this problem on SO: > http://stackoverflow.com/questions/20268021/how-to-catch-warnings-sent-d

[Rd] How to catch warnings sent by arguments of s4 methods ?

2013-11-29 Thread Karl Forner
tion of the arguments of S4 methods can not get caught using withCallingHandlers(). Is this expected ? Is there a work-around ? Best, Karl Forner __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] problem using rJava with parallel::mclapply

2013-11-11 Thread Karl Forner
Thanks Malcolm, But it does seem to solve the problem. On Mon, Nov 11, 2013 at 6:48 PM, Cook, Malcolm wrote: > Karl, > > I have the following notes to self that may be pertinent: > > options(java.parameters= > ## Must preceed `library(XLConnect)` in orde

[Rd] problem using rJava with parallel::mclapply

2013-11-11 Thread Karl Forner
s = 2) To cite Martin, it seems to work with mclapply when the JVM process is initialized after forking. Is this a bug or a limitation of rJava ? Or is there a good practice for rJava clients to avoid this problem ? Best, Karl P.S. > sessionInfo() R version 3.0.1 (2013-05-16) Platform: x86

[Rd] unloadNamespace, getPackageName and "Created a package name xxx " warning

2013-10-29 Thread Karl Forner
onder if in the case of import namespaces, getPackageName() could not find a more appropriate name: >parent.env(getNamespace('data.table')) attr(,"name") [1] "imports:data.table" This namespace has a name that might be used to generate the package name. My question

[Rd] Possible problem with namespaceImportFrom() and methods for generic primitive functions

2013-10-18 Thread Karl Forner
know if the problem is on my side, e.g. from a misconfiguration of the NAMESPACE file, or if it is a bug and in which case what should be done. Any feedback appreciated. Karl Forner [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Using long long types in C++

2013-09-19 Thread Karl Millar
Romain, Can you use int64_t and uint_t64 instead? IMHO that would be more useful than long long anyway. Karl On Sep 19, 2013 5:33 PM, "Patrick Welche" wrote: > On Fri, Sep 20, 2013 at 12:51:52AM +0200, rom...@r-enthusiasts.com wrote: > > In Rcpp we'd like to do somethi

Re: [Rd] Comments requested on "changedFiles" function

2013-09-06 Thread Karl Millar
On Fri, Sep 6, 2013 at 7:03 PM, Duncan Murdoch wrote: > On 13-09-06 9:21 PM, Karl Millar wrote: >> >> Hi Duncan, >> >> I like the interface of this version a lot better, but there's still a >> bunch of implementation details that need fixing: >> >&

Re: [Rd] Comments requested on "changedFiles" function

2013-09-06 Thread Karl Millar
em in the past. I've attached code that's loosely based on your implementation that solves these problems AFAICT. Alternatively, Hadley's code handles all of these correctly, with the exception that compare_state doesn't handle the case where safe_digest returns NA very well.

Re: [Rd] Comments requested on "changedFiles" function

2013-09-05 Thread Karl Millar
Comments inline: On Wed, Sep 4, 2013 at 6:10 PM, Duncan Murdoch wrote: > > On 13-09-04 8:02 PM, Karl Millar wrote: >> >> Hi Duncan, >> >> I think this functionality would be much easier to use and understand if >> you split it up the functionality of taking

Re: [Rd] Comments requested on "changedFiles" function

2013-09-04 Thread Karl Millar
7;t be compared, but that should be an easy error to detect. Karl On Wed, Sep 4, 2013 at 10:53 AM, Duncan Murdoch wrote: > In a number of places internal to R, we need to know which files have > changed (e.g. after building a vignette). I've just written a general > purpose func

[Rd] sys.source() does not provide the parsing info to eval()

2013-06-24 Thread Karl Forner
asses 'srcfilecopy', 'srcfile' # NULL print( str(ex[[1]])) # language 1 + 1 # NULL print( str(ex[1])) # length 1 expression(1 + 1) # - attr(*, "srcref")=List of 1 # ..$ :Class 'srcref' atomic [1:8] 1 1 1 3 1 3 1 1 # .. .. ..- attr(*, &quo

[Rd] bug in package.skeleton(), and doc typo.

2013-06-04 Thread Karl Forner
also a typo in the doc: The sentence: > Otherwise list defaults to the non-hidden **files** in environment (those whose name does not start with .) should be > Otherwise list defaults to the non-hidden **objects** in environment (those whose name does not start with .) Best, Karl Forner &g

Re: [Rd] Catch SIGINT from user in backend C++ code

2013-05-06 Thread Karl Forner
o the original announcement: http://tolstoy.newcastle.edu.au/R/e17/devel/12/02/0443.html Hope it helps. Karl Forner Quartz Bio On Thu, May 2, 2013 at 1:50 AM, Jewell, Chris wrote: > Hi, > > I was wondering if anybody knew how to trap SIGINTs (ie Ctrl-C) in backend > C++ code for R

Re: [Rd] parallel::mclapply does not return try-error objects with mc.preschedule=TRUE

2013-04-23 Thread Karl Forner
> >> Is this a bug ? >> > > Not in parallel. Something else has changed, and I am about to commit a > different version that still works as documented. > > Thanks for replying. [[alternative HTML version deleted]] __ R-devel@r-project.org maili

[Rd] parallel::mclapply does not return try-error objects with mc.preschedule=TRUE

2013-04-11 Thread Karl Forner
lass "try-error" objects in the return value and a warning will be given.' Is this a bug ? Thanks Karl > sessionInfo() R version 2.15.3 (2013-03-01) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF

[Rd] How to avoid using gridextra via Depends instead of Imports in a package ?

2013-03-20 Thread Karl Forner
with the search path, which is a best practice if I'm not mistaken, so we tried hard to solve it using Imports. But I came to realize that the problem was in the grid namespace, not in our package namespace. I tested it with the following work-around: parent.env(parent.env(ge

[Rd] Problem using raw vectors with inline cfunction

2013-02-01 Thread Karl Forner
parently that is not the case. I guess that the "raw = as.character(raw)," printed in the traceback is responsible for the observed behavior. If it is expected behavior, how can I get a pointer on my array of bytes ? Thanks. Karl __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-07 Thread Karl Forner
Hello and thank you. Indeed gsubfn is responsible for loading tcltk in my case. On Thu, Jan 3, 2013 at 12:14 PM, Gabor Grothendieck wrote: > options(gsubfn.engine = "R") __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-deve

Re: [Rd] weird bug with parallel, RSQlite and tcltk

2013-01-03 Thread Karl Forner
should be done about this. Maybe the "gui loop" should not be run a the the loading of the tcltk package, but at the first function ran, or something like this. As you can see in my example code, the in-memory database is opened in the parallel code... Best, Karl On Mon, Dec 31, 2012 a

[Rd] weird bug with parallel, RSQlite and tcltk

2012-12-31 Thread Karl Forner
) : error 'Interrupted system call' in select Then, just remove library(tcltk), or uncomment unloadNamespace("tcltk"), and it works fine again. I guess there's a bug somewhere, but where exactly ? Best, Karl Forner Further info: R version 2.15.1 (2012-06-22) -- "Roaste

Re: [Rd] Invalid date-times and as.POSIXct problems (remotely related to DST issues)

2012-03-14 Thread Karl Ove Hufthammer
Karl Ove Hufthammer wrote: > I think this should be handled as a bug, but I’m not sure which > platforms and versions it applies to, so I’m writing to this list. No response, so I‘ve filed a bug at https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14845 (with some additional info). --

[Rd] Invalid date-times and as.POSIXct problems (remotely related to DST issues)

2012-03-12 Thread Karl Ove Hufthammer
ay.1252 LC_MONETARY=Norwegian-Nynorsk_Norway.1252 [4] LC_NUMERIC=C LC_TIME=Norwegian-Nynorsk_Norway.1252 attached base packages: [1] stats graphics grDevices datasets utils methods base -- Karl Ove Hufthammer __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] portable parallel seeds project: request for critiques

2012-03-02 Thread Karl Forner
Thanks for your quick reply. About the rngSetSeed package: is it usable at c/c++ level ? The same can be said about initializations. Initialization is a random > number generator, whose output is used as the initial state of some > other generator. There is no proof that a particular initializati

[Rd] c/c++ Random Number Generators Benchmarks using OpenMP

2012-03-02 Thread Karl Forner
propose an implementation suiting all needs. Thanks, Karl Forner Annex: I ran the benchmarks on a linux Intel(R) Xeon(R) with 2 cpus of 4 cores each ( CPU E5520 @ 2.27GHz). type threads nerrortime time_per_chunk 1 lecuyer 1 1e+07 2.105472e-04 1.538 0.00153

Re: [Rd] portable parallel seeds project: request for critiques

2012-03-02 Thread Karl Forner
213, we have a probability of overlap > p ≈ 10^3362. > What do you think ? I am very concerned by the correctness of this approach so would appreciate any advice on that matter. Thanks Karl [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] RcppProgress: progress monitoring and interrupting c++ code, request for comments

2012-02-23 Thread Karl Forner
} } } I provided two small R test functions so that you can see how it looks, please see the doc. I would be extremely grateful if you could give me comments, criticisms and other suggestions. I try to release this in order to reuse this functionality in my other packages. Best r

Re: [Rd] OpenMP and random number generation

2012-02-22 Thread Karl Forner
urse I can not define exactly when it will be ready. Best, Karl On Wed, Feb 22, 2012 at 9:23 AM, Mathieu Ribatet < mathieu.riba...@math.univ-montp2.fr> wrote: > Dear all, > > Now that R has OpenMP facilities, I'm trying to use it for my own package > but I'm still

Re: [Rd] .Call in R

2011-11-18 Thread Karl Forner
> Cheers > Joris > > On Fri, Nov 18, 2011 at 4:08 PM, Karl Forner > wrote: > > Hi, > > > > A probably very naive remark, but I believe that the probability of sum( > > runif(1) ) >= 5 is exactly 0.5. So why not just test that, and > > generate th

Re: [Rd] .Call in R

2011-11-18 Thread Karl Forner
Hi, A probably very naive remark, but I believe that the probability of sum( runif(1) ) >= 5 is exactly 0.5. So why not just test that, and generate the uniform values only if needed ? Karl Forner On Thu, Nov 17, 2011 at 6:09 PM, Raymond wrote: > Hi R developers, > >

[Rd] Fwd: Error in svg() : cairo-based devices are not supported on this build

2011-06-06 Thread Karl Forner
xft; do if "${PKGCONF}" --exists ${module}; then modlist="${modlist} ${module}" fi I do not know if it is an error in the configure script or just a peculiarity of my installation. All these libs (pango, cairo, gtk, glib) have been installed manually

[Rd] Error in svg() : cairo-based devices are not supported on this build

2011-05-19 Thread Karl Forner
define HAVE_CAIRO_PDF 1 #define HAVE_CAIRO_PS 1 #define HAVE_CAIRO_SVG 1 So what can be wrong ?? Thank you Karl [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] How to get R to compile with PNG support

2011-04-21 Thread Karl-Dieter Crisman
Thanks for all the feedback. First, our update, then two responses. >From Jason Grout: +++ I finally got it working. After mucking around in the R configure file a bit and trying out some of the different tests, as well as comparing a working system with our broken system, I realized that `pkg-c

Re: [Rd] How to get R to compile with PNG support

2011-04-21 Thread Karl-Dieter Crisman
Thanks for your replies, Dirk and Matt. On Thu, Apr 21, 2011 at 7:49 AM, Dirk Eddelbuettel wrote: > > On 20 April 2011 at 12:16, Karl-Dieter Crisman wrote: > | > | > | R is now configured for i686-pc-linux-gnu > |  Source directory:          . > |  Installatio

Re: [Rd] How to get R to compile with PNG support

2011-04-21 Thread Karl-Dieter Crisman
Followup with the specific issue in our most recent (non-posted, as of yet) attempts on a certain box. We now have xorg-dev, libcairo-dev, and Xwindows.h and libpng (as below) on this machine, but R is not compiling with support for any of these things. Once again, any help knowing *exactly* what

Re: [Rd] How to get R to compile with PNG support

2011-04-20 Thread Karl-Dieter Crisman
gt; > Dear R devel list, > > Good morning; I'm with the Sage (http://www.sagemath.org) project. > (Some of you might have seen my talk on this at last summer's useR > conference). > > Thanks for stoping by Karl! I have to say that I am a big fan of the Sage > projec

[Rd] How to get R to compile with PNG support

2011-04-18 Thread Karl-Dieter Crisman
ing silly above, because I don't actually know what all these files are - I've just looked into enough support requests to have a decent idea of what's required.We are trying not to have to parse the makefile to figure all this out, and possibly making som

[Rd] Possible bug in cut.dendrogram when there are only 2 leaves in the tree ?

2011-01-28 Thread Karl Forner
(cut(dd, 0.2)) # here 2 clusters in $lower, as expected So the question is: is it expected behavior that the whole tree is not reported in the $lower if it is itself under the threshold ? Thank you, Karl FORNER [[alternative HTML version deleted]]

Re: [Rd] match function causing bad performance when using tablefunction on factors with multibyte characters on Windows

2011-01-26 Thread Karl Ove Hufthammer
Karl Ove Hufthammer wrote: > Anyway, do you think it’s worth trying to change the ‘table’ function the > way I outlined in my first post¹? This should eliminate the performance > hit on all platforms. Some additional notes: ‘table’ uses ‘factor’ directly, but also indirectly, in ‘ad

Re: [Rd] match function causing bad performance when using tablefunction on factors with multibyte characters on Windows

2011-01-26 Thread Karl Ove Hufthammer
nction the way I outlined in my first post¹? This should eliminate the performance hit on all platforms. However, it will introduce a performance hit (CPU and memory use) if the elements of ‘exclude’ make up a large part of the factor(s). ¹ http://permalink.gmane.org/gmane.comp.lang.r

Re: [Rd] dendrogram plot does not draw long labels ?

2011-01-25 Thread Karl Forner
. I suppose that the margins should be dynamically set based on the max label text drawn length... The hclust plot seemed to handle very nicely these long labels, but I need to display colored labels and the only way I found is to use the plot.dendrogram for this. Best, Karl On Tue, Jan 25, 2011

Re: [Rd] match function causing bad performance when using tablefunction on factors with multibyte characters on Windows

2011-01-25 Thread Karl Ove Hufthammer
rt LC_ALL="en_US.ISO-8859-1" export LANG="en_US.ISO-8859-1" I could *not* reproduce it; that is, ‘table’ is as fast on the non-ASCII factor as it is on the ASCII factor. -- Karl Ove Hufthammer __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] dendrogram plot does not draw long labels ?

2011-01-25 Thread Karl Forner
label is drawn > attr(dd[[1]], "label") <- "aa" > plot(dd) # first label is NOT drawn Is this expected ? Is it possible to force the drawing ? Thank you, Karl [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] table on numeric vector with exclude argument containing value missing from vector causes warning + "NaN" levels incorrectly removed from factors

2011-01-21 Thread Karl Ove Hufthammer
by useNA="no".) sessionInfo() R version 2.12.1 Patched (2011-01-20 r54056) Platform: i686-pc-linux-gnu (32-bit) locale: [1] C attached base packages: [1] stats graphics grDevices utils datasets methods base -- Karl Ove Hufthammer __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] match function causing bad performance when using table function on factors with multibyte characters on Windows

2011-01-21 Thread Karl Ove Hufthammer
exclude)) do.call("[", c(list(res), ind, drop=FALSE)) (I haven’t tested this very much, so there may be issues with this way of doing things.) -- Karl Ove Hufthammer __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] checking user interrupts in C(++) code

2010-09-29 Thread Karl Forner
allocated objects, moreover it depends on where happens the interruption Best, Karl [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] checking user interrupts in C(++) code

2010-09-28 Thread Karl Forner
his, but I wonder if there's a new and definitive answer. I just do not understand why a simple R_CheckUserInterrupt() like method returning a boolean could not be used. Please enlighten me ! Karl [[alternative HTML version deleted]] _

Re: [Rd] Possible bug or annoyance with library.dynam.unload()

2010-09-22 Thread Karl Forner
t;> error: shared library 'foo' was not loaded >> >> #The libpath that the .onUnload() gets is "local/foo". >> >> #This fails: >> >library.dynam.unload("foo", "local/foo") >> Error in library.dynam.unload("foo&qu

Re: [Rd] Possible bug or annoyance with library.dynam.unload()

2010-09-22 Thread Karl Forner
". #This fails: >library.dynam.unload("foo", "local/foo") Error in library.dynam.unload("foo", "local/foo") : shared library 'foo' was not loaded # but if you use the absolute path it works: >library.dynam.unload("foo", "

Re: [Rd] Possible bug or annoyance with library.dynam.unload()

2010-09-21 Thread Karl Forner
Hello, I got no reply on this issue. It is not critical and I could think of work-around, but it really looks like a bug to me. Should I file a bug-report instead of posting in this list ? Thanks, Karl On Thu, Sep 16, 2010 at 6:11 PM, Karl Forner wrote: > Hello, > > I have a packa

[Rd] Possible bug or annoyance with library.dynam.unload()

2010-09-16 Thread Karl Forner
ibrary.dynam.unload("Foo", "/home/toto/.Rcheck/Foo") So from what I understand, the problem is either that the relative libpath is sent to the .onUnload() function instead of the absolute one, or that library.dynam.unload() should be modified to

Re: [Rd] Best way to manage configuration for openMP support

2010-09-15 Thread Karl Forner
no openmp support was detected. Maybe this could be put into the Writing R Extensions manual. Thanks again, Karl [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Fwd: warning or error upon type/storage mode coercion?

2010-09-15 Thread Karl Forner
-- Forwarded message -- From: Karl Forner Date: Wed, Sep 15, 2010 at 10:14 AM Subject: Re: [Rd] warning or error upon type/storage mode coercion? To: Stefan Evert I'm a Perl fan, and I really really miss the "use strict" feature. IMHO it's very error-pro

Re: [Rd] R on Windows crashes when using certain characters in strings in data frames (PR#14125)

2009-12-11 Thread Karl Ove Hufthammer
character does exist in both ISO 8859-1 and Windows-1252. -- Karl Ove Hufthammer __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] R on Windows crashes when using certain characters in strings in data frames (PR#14125)

2009-12-10 Thread karl
Full_Name: Karl Ove Hufthammer Version: 2.10.0 OS: Windows XP Submission from: (NULL) (93.124.134.66) I have found a rather strange bug in R 2.10.0 on Windows, where the choice of characters used in a string make R crash (i.e., Windows shows a dialogue saying that the application has a problem

[Rd] umlaut in path name (PR#14119)

2009-12-09 Thread karl . schilling
Full_Name: Karl Schilling Version: 2.10.0 patched OS: Win XP Submission from: (NULL) (131.220.251.8) I am running R 2.10.0 patched under WinXP (German version). When I use the command file.choose() and try to navigate to a target with an umlaut (Ä, Ö, Ü) in the pathway, I get an error message

Re: [Rd] Suggestion: Add links to NEWS and CHANGES on help.start() page

2009-11-13 Thread Karl Ove Hufthammer
ul format. The feature I'd prefer doesn't require any fancy parsing, just an ordinary listing of the contents of the text files NEWS/CHANGES (in a separate window, or perhaps opened in the user's browser). -- Karl Ove Hufthammer _

Re: [Rd] Suggestion: Add links to NEWS and CHANGES on help.start() page

2009-11-13 Thread Karl Ove Hufthammer
MASS) Or have I overlooked something, and a function for this already exists? -- Karl Ove Hufthammer __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] plot.POSIXct uses wrong x axis (PR#14016)

2009-10-20 Thread karl
Full_Name: Karl Ove Hufthammer Version: 2.10.0 beta OS: Windows Submission from: (NULL) (93.124.134.66) When plotting a single POSIXct variable, 'plot' uses a nonsensical x axis. Here is some example code: set.seed(1) x=seq(1,1e8,length=100)+round(runif(100)*1e8) y=as.POSIXct(x,origi

Re: [Rd] significant digits (PR#9682)

2008-06-04 Thread Karl Ove Hufthammer
50) [1] "0.12345417443857259058859199285507202148" > So it looks as though Windows gets it right. -- Karl Ove Hufthammer __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] ** operator

2008-05-16 Thread Karl Ove Hufthammer
no "->" function either...) You can also use expression() to see what various expressions are parsed as: > expression(2**5) expression(2^5) > expression(3->x) expression(x <- 3) -- Karl Ove Hufthammer __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] (PR#10437) segfault on functions with 'source' attribute

2007-11-21 Thread karl
than setting it to NULL. [EMAIL PROTECTED]: > I am not sure why you would want to do that, but the C code does assume > source attributes were put there by R, and changing tests from !isNull to > isString in a few places will fix that. -- Karl Ove Hufthammer __

[Rd] segfault on functions with 'source' attribute set to a boolean or a number (PR#10437)

2007-11-19 Thread karl
Full_Name: Karl Ove Hufthammer Version: 2.6.0 OS: Linux (Fedora 7) Submission from: (NULL) (129.177.61.84) When viewing a function that has its 'source' attribute set to a boolean or a numeric, R crashes with a segfault. (Setting 'source' to a character vector does not m

Re: [Rd] PGF Device

2007-01-31 Thread Karl Ove Hufthammer
gt; If not, I'm going to try to throw one together. Sounds wonderful. I am sure this will be useful for a lot of people. -- Karl Ove Hufthammer __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] digits in summary.default

2006-09-15 Thread Karl Ove Hufthammer
umber of digits shown for estimates (s.t. the number of digits vary for each row/ estimate). [1] Not on CRAN. See http://www.menne-biomed.de/download/download.html -- Karl Ove Hufthammer E-mail and Jabber: [EMAIL PROTECTED] __ R-devel@r-project.

  1   2   >