Re: [Rd] FR: improve "use" function

2025-05-27 Thread Laurent Gatto via R-devel
"isDiagonal") ## warn Warning message: In library("Matrix", exclude = "isDiagonal") : The package 'Matrix' is already loaded with a different set of functions. Please detach() it first. > library("Matrix", include.only = "isDiagonal") ## warn Warning message: In library("Matrix", include.only = "isDiagonal") : The package 'Matrix' is already loaded with a different set of functions. Please detach() it first. If this is a good way forward, I would be happy to carry on that work. Laurent [1] https://github.com/r-devel/r-dev-day/issues/48 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Warnings created during R_eval or R_tryEval not shown before R ending or R error.

2023-04-29 Thread Laurent Gautier
Thanks Ivan. I did not know about ` .Internal(printDeferredWarnings())`. It does provide a solution for what I need. Best, Laurent Le mer. 26 avr. 2023 à 06:23, Ivan Krylov a écrit : > В Sun, 23 Apr 2023 13:33:16 -0400 > Laurent Gautier пишет: > > > When tracing what happens du

[Rd] Warnings created during R_eval or R_tryEval not shown before R ending or R error.

2023-04-23 Thread Laurent Gautier
one have a suggestion about what I am missing? Best, Laurent [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Inconsistent behavior for the C AP's R_ParseVector() ?

2019-12-14 Thread Laurent Gautier
", or initial context, the code should from ? Searching for "context" in the R-exts manual does not return much. Best, Laurent Le sam. 14 déc. 2019 à 12:20, Simon Urbanek a écrit : > Laurent, > > the main point here is that ParseVector() just like any other R API has to >

Re: [Rd] Inconsistent behavior for the C AP's R_ParseVector() ?

2019-12-14 Thread Laurent Gautier
Le lun. 9 déc. 2019 à 09:57, Tomas Kalibera a écrit : > On 12/9/19 2:54 PM, Laurent Gautier wrote: > > > > Le lun. 9 déc. 2019 à 05:43, Tomas Kalibera a > écrit : > >> On 12/7/19 10:32 PM, Laurent Gautier wrote: >> >> Thanks for the quick response Tomas. &

Re: [Rd] Inconsistent behavior for the C AP's R_ParseVector() ?

2019-12-09 Thread Laurent Gautier
Le lun. 9 déc. 2019 à 05:43, Tomas Kalibera a écrit : > On 12/7/19 10:32 PM, Laurent Gautier wrote: > > Thanks for the quick response Tomas. > > The same error is indeed happening when trying to have a zero-length > variable name in an environment. The surprising bit is

Re: [Rd] Inconsistent behavior for the C AP's R_ParseVector() ?

2019-12-07 Thread Laurent Gautier
call last) >>> e = ri.parse("list(''=123") R[write to console]: Error: attempt to use >>> zero-length variable name R[write to console]: Fatal error: unable to initialize the JIT *** stack smashing detected ***: terminated ``` Le lun. 2 déc. 2019 à 06:37, Toma

Re: [Rd] Inconsistent behavior for the C AP's R_ParseVector() ?

2019-11-30 Thread Laurent Gautier
ero-length variable name ``` Should the parser be made to accept as valid what is otherwise possible when using `[[<` ? Best, Laurent Le sam. 30 nov. 2019 à 17:33, Laurent Gautier a écrit : > I found the following code comment in `src/main/gram.c`: > > ``` > > /* Mem

Re: [Rd] Inconsistent behavior for the C AP's R_ParseVector() ?

2019-11-30 Thread Laurent Gautier
be related to be issue ? Le sam. 30 nov. 2019 à 14:04, Laurent Gautier a écrit : > Hi, > > The behavior of > ``` > SEXP R_ParseVector(SEXP, int, ParseStatus *, SEXP); > ``` > defined in `src/include/R_ext/Parse.h` appears to be inconsistent > depending on the string to

[Rd] Inconsistent behavior for the C AP's R_ParseVector() ?

2019-11-30 Thread Laurent Gautier
***: terminated ``` Is there a reason for the difference in behavior, and is there a workaround ? Thanks, Laurent [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Error: package or namespace load failed for ‘utils

2019-09-21 Thread Laurent Gautier
écrit : > >>>>> Laurent Gautier > >>>>> on Sun, 15 Sep 2019 15:01:09 -0400 writes: > > > In case a search engine leads someone with the same issue > > here, I am documenting the point I reached: > > > I can reproduce the issue with

Re: [Rd] Error: package or namespace load failed for ‘utils

2019-09-15 Thread Laurent Gautier
In case a search engine leads someone with the same issue here, I am documenting the point I reached: I can reproduce the issue with a small example when forcing R to not load any package at startup time (using an Renviron file): ``` package <- "utils" lib.loc <- "" ns <- loadNamespace(package, li

Re: [Rd] Error: package or namespace load failed for ‘utils

2019-09-08 Thread Laurent Gautier
ods*will reduce >> the start-up time by a factor of up to two. But it can also be used to >> customize R, e.g. for class use. Rscript also checks the environment >> variable R_SCRIPT_DEFAULT_PACKAGES; if set, this takes precedence over >> R_DEFAULT_PACKAGES. >> Bill Dunlap

Re: [Rd] Error: package or namespace load failed for ‘utils

2019-09-08 Thread Laurent Gautier
ed to > customize R, e.g. for class use. Rscript also checks the environment > variable R_SCRIPT_DEFAULT_PACKAGES; if set, this takes precedence over > R_DEFAULT_PACKAGES. > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > > On Sun, Sep 8, 2019 at 8:42 AM Laur

[Rd] Error: package or namespace load failed for ‘utils

2019-09-08 Thread Laurent Gautier
what it is) earlier and with this make the task of troubleshooting easier. Best, Laurent [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [External] Missing function Rf_findFun3

2019-09-08 Thread Laurent Gautier
I am not using the C API from a package but with an embedded R. Why have it declared in the include/ if it cannot be accessed then? Best, Laurent On Sun, Sep 8, 2019, 8:27 AM Tierney, Luke wrote: > On Sat, 7 Sep 2019, Laurent Gautier wrote: > > > Hi, > > > > > >

[Rd] Missing function Rf_findFun3

2019-09-07 Thread Laurent Gautier
Hi, The function `Rf_findFun3` is declared in `$(R CMD CONFIG HOME)/lib/R/include/Rinternals.h` but appears to be missing from R's shared library (R.so). Is this an oversight? Best, Laurent [[alternative HTML version deleted]] __ R-de

Re: [Rd] Warning when calling formals() for `[`.

2018-10-07 Thread Laurent Gautier
ULL > >> get("[") > > .Primitive("[") > >> get("+") > > function (e1, e2) .Primitive("+") > > > > The other index operators, "[[", "[<-", "[[<-" are similar > &g

Re: [Rd] Warning when calling formals() for `[`.

2018-10-06 Thread Laurent Gautier
; NULL > Warning message: > In formals(fun) : argument is not a function > > > Hope this helps, > > Rui Barradas > > > Às 18:26 de 06/10/2018, Laurent Gautier escreveu: > > Hi, > > > > A short code example showing the warning might the only thing needed &g

[Rd] Warning when calling formals() for `[`.

2018-10-06 Thread Laurent Gautier
ls(args(`sum`)) $... $na.rm [1] FALSE > is.function(`sum`) [1] TRUE > is.primitive(`sum`) [1] TRUE > class(`[`) [1] "function" ``` Is this a feature ? Laurent [[alternative HTML version deleted]] __ R-devel@r-project.org ma

Re: [Rd] Definition of uintptr_t in Rinterface.h

2017-01-01 Thread Laurent Gautier
doing much to prevent it. 2017-01-01 19:42 GMT-05:00 Simon Urbanek : > > > On Jan 1, 2017, at 5:12 PM, Laurent Gautier wrote: > > > > > > > > 2017-01-01 8:28 GMT-05:00 Prof Brian Ripley : > > On 29/12/2016 15:55, Simon Urbanek wrote: > > The problem

Re: [Rd] Definition of uintptr_t in Rinterface.h

2017-01-01 Thread Laurent Gautier
u comply, there will not be a conflict. > > Also note that is only an issue if CSTACK_DEFNS is defined, not the > default and not mentioned here. > > > > > Thanks, >> Simon >> >> >> >> On Dec 26, 2016, at 11:25 PM, Laurent Gautier wrote: &

Re: [Rd] Definition of uintptr_t in Rinterface.h

2016-12-29 Thread Laurent Gautier
Thanks, > Simon > > > > > On Dec 26, 2016, at 11:25 PM, Laurent Gautier > wrote: > > > > Hi, > > > > I was recently pointed out that a definition in Rinterface.h can be > conflicting > > with a definition in stdint.h: > > > > /

[Rd] Definition of uintptr_t in Rinterface.h

2016-12-26 Thread Laurent Gautier
uintptr_t; #endif ) Is this expected ? Shouldn't R rely on the definition in stdint.h rather than define its own ? (report for the issue: https://bitbucket.org/rpy2/rpy2/issues/389/failed-to-compile-with-python-360-on-32 ) Laurent [[alternative HTML version de

[Rd] C-API: Reporting syntax errors when calling R_ParseVector()

2015-08-29 Thread Laurent Gautier
/show_bug.cgi?id=9466 - 2009: https://stat.ethz.ch/pipermail/r-devel/2009-June/053801.html Would anyone have a pointer ? Laurent [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [Rd] C-API: check whether R has been initialized ?

2015-05-04 Thread Laurent Gautier
On May 4, 2015 12:06 AM, "Simon Urbanek" wrote: > > Laurent, > > On May 3, 2015, at 8:07 PM, Laurent Gautier wrote: > > > rPython appears to provide an interface from R to Python by embedding > > Python and I'd think that it can safely assume that R has

Re: [Rd] C-API: check whether R has been initialized ?

2015-05-03 Thread Laurent Gautier
n the life of the process R was initialized. 2015-05-03 19:48 GMT-04:00 Duncan Murdoch : > On 03/05/2015 7:02 PM, Laurent Gautier wrote: > > Beside the possible argumentation that with an API elegance and > > convenience might sometimes be superior to necessity, the suggested > &g

Re: [Rd] C-API: check whether R has been initialized ?

2015-05-03 Thread Laurent Gautier
s: ``` $ R -q > library('rPython'); python.exec('import rpy2.robjects') R is already initialized ``` https://bitbucket.org/rpy2/rpy2/issue/278/r-in-python-via-rpy2-in-r-via-rpython#comment-17843761 2015-05-03 18:12 GMT-04:00 Duncan Murdoch : > On 03/05/2015 4:

[Rd] C-API: check whether R has been initialized ?

2015-05-03 Thread Laurent Gautier
Hi, There appear to be no way to check whether R has already been initialized. Could a function like "Rf_isinitialized" be added to the API ? Best, Laurent [[alternative HTML version deleted]] __ R-devel@r-project.org mailing

Re: [Rd] C-API: removing key-value pairs in an environment

2014-07-15 Thread Laurent Gautier
art of the C API, and you need to call back to R. Here is how Rcpp does it: https://github.com/RcppCore/Rcpp/blob/e2fcecad4533301d12e1ba19e94ab9f0fa3eb423/inst/include/Rcpp/Environment.h#L194 Best, Gabor On Tue, Jul 15, 2014 at 10:24 PM, Laurent Gautier wrote: Hi, I am trying to remove key-value p

[Rd] C-API: removing key-value pairs in an environment

2014-07-15 Thread Laurent Gautier
Hi, I am trying to remove key-value pairs from an environments (using C). While adding seems straightforward with `Rf_defineVar()`, I cannot find a function to remove objects from a given environment. Would anyone know if there is such a function ? Best, Laurent

Re: [Rd] Blank lines in DESCRIPTION

2013-11-27 Thread Laurent Gatto
> Laurent, > > blank lines between records are not allowed in DESCRIPTION, because > they separate paragraphs in DCF and a package must consist of a single > paragraph. This properly is used by R for multi-package DCF files > where each paragraph defines one package. Blank li

[Rd] Blank lines in DESCRIPTION

2013-11-26 Thread Laurent Gatto
has come up here [2], when github-specific information is appended to a DESCRIPTION file that ends with a blank line. Thank you very much in advance. Best wishes, Laurent [1] http://cran.r-project.org/bin/windows/base/old/2.15.3/NEWS.R-2.15.3.html [2] https://gith

Re: [Rd] Policy/best practices on renaming functions in packages

2013-06-11 Thread Laurent Gatto
nd then more on with base::Defunct. This guide, http://bioconductor.org/developers/how-to/deprecation/, although from the Bioconductor project, might be helpful. Best wishes, Laurent > Thanks! > > --j > > -- > Jonathan A. Greenberg, PhD > Assistant Professor > Global Environ

[Rd] RFC: R_data_class as part of the C-API

2013-04-26 Thread Laurent Gautier
R_data_class(SEXP obj, Rboolean singleString) ``` I am obviously writing this because I'd wish to see it in the API, and I think that the above (a package shipped with R does need this as part of the API) is a pretty good case for having it. Best, Laurent PS: I have found a similar request made some

Re: [Rd] Mirroring R on a DVCS

2013-03-24 Thread Laurent Gautier
Hi again, The branch "R-3-0-branch" appears to be missing from the mirror. Best, Laurent On 2013-03-16 21:38, Winston Chang wrote: > The Github mirror isn't affiliated with R-core developers -- it just > fetches the changes from the R SVN repository periodically. Changes

Re: [Rd] Mirroring R on a DVCS

2013-03-16 Thread Laurent Gautier
Thanks. I missed it, I guess. I am surprised by the relatively low number of forks... L. On 2013-03-16 11:28, Peter Meilstrup wrote: > There is already a mirror on GitHub at https://github.com/wch/r-source . > > Peter > > On Mar 16, 2013, at 11:17, Laurent Gautier <mailto:

[Rd] Mirroring R on a DVCS

2013-03-16 Thread Laurent Gautier
having patches included upstream. Would anyone else be interested ? Laurent __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Printing warning messages around R_tryEval

2013-03-07 Thread Laurent Gautier
: r61771 | ripley | 2013-01-29 12:09:45 +0100 (Tue, 29 Jan 2013) | 1 line more hiding Could this mean that the change could reverted and Rf_PrintWarnings just be added to the C API ? Laurent On 2013-03-07 12:00, r

Re: [Rd] Bug: C-level and _set_rl_word_breaks

2013-02-03 Thread Laurent Gautier
On 2013-01-31 21:52, Laurent Gautier wrote: On 2013-01-31 21:09, Duncan Murdoch wrote: On 13-01-30 9:48 PM, Laurent Gautier wrote: Hi, I filed a bug report in the tracker (id #15169) a short while ago, along with a patch, but I came back to it to see that there is relatively little movement

Re: [Rd] Bug: C-level and _set_rl_word_breaks

2013-01-31 Thread Laurent Gautier
On 2013-01-31 21:09, Duncan Murdoch wrote: On 13-01-30 9:48 PM, Laurent Gautier wrote: Hi, I filed a bug report in the tracker (id #15169) a short while ago, along with a patch, but I came back to it to see that there is relatively little movement or participation on the tracker so I thought

[Rd] Bug: C-level and _set_rl_word_breaks

2013-01-30 Thread Laurent Gautier
es fails, the system might have bigger worries than keeping R from crashing). Laurent Index: src/unix/sys-std.c === --- src/unix/sys-std.c (revision 61791) +++ src/unix/sys-std.c (working copy) @@ -619,12 +619,31 @@ at

Re: [Rd] Bounty on Error Checking

2013-01-04 Thread Laurent Gautier
On 2013-01-04 12:00, r-devel-requ...@r-project.org wrote: Message: 16 Date: Thu, 3 Jan 2013 22:52:44 + From: Ben Bolker To: Subject: Re: [Rd] Bounty on Error Checking Message-ID: Content-Type: text/plain; charset="us-ascii" ivo welch anderson.ucla.edu> writes: > >Dear R developers---I

[Rd] documentation for legend(): possible missing info for pch.

2012-12-07 Thread Laurent Gautier
misread them, examples in the same documentation page suggest that it is also possible to pass integers. Best, Laurent __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Spurious warning when calling data() ?

2012-10-23 Thread Laurent Gautier
On 2012-10-23 21:43, Duncan Murdoch wrote: On 23/10/2012 3:20 PM, Laurent Gautier wrote: Hi, When calling data, a warning seems to have been left behind > data(package="stats", verbose=FALSE) Warning message: In data(package = "stats", verbose = FALSE) : datase

[Rd] Spurious warning when calling data() ?

2012-10-23 Thread Laurent Gautier
Hi, When calling data, a warning seems to have been left behind data(package="stats", verbose=FALSE) Warning message: In data(package = "stats", verbose = FALSE) : datasets have been moved from package 'stats' to package 'datasets' (full version

Re: [Rd] Package "datasets" not exporting anything on a recent R-2.15.1-patched

2012-08-27 Thread Laurent Gautier
On 2012-08-27 11:32, Uwe Ligges wrote: On 26.08.2012 20:01, Laurent Gautier wrote: On 2012-08-26 19:27, Prof Brian Ripley wrote: On 26/08/2012 18:20, Laurent Gautier wrote: On 2012-08-26 19:03, Prof Brian Ripley wrote: On 26/08/2012 17:25, Laurent Gautier wrote: Hi, I just stumbled on

Re: [Rd] Package "datasets" not exporting anything on a recent R-2.15.1-patched

2012-08-26 Thread Laurent Gautier
On 2012-08-26 19:27, Prof Brian Ripley wrote: On 26/08/2012 18:20, Laurent Gautier wrote: On 2012-08-26 19:03, Prof Brian Ripley wrote: On 26/08/2012 17:25, Laurent Gautier wrote: Hi, I just stumbled on the following apparent oddity: the package "datasets" does not appear

Re: [Rd] Package "datasets" not exporting anything on a recent R-2.15.1-patched

2012-08-26 Thread Laurent Gautier
On 2012-08-26 19:03, Prof Brian Ripley wrote: On 26/08/2012 17:25, Laurent Gautier wrote: Hi, I just stumbled on the following apparent oddity: the package "datasets" does not appear to export anything out of its namespace: > ns_datasets <- getNamespace('datasets

Re: [Rd] Package "datasets" not exporting anything on a recent R-2.15.1-patched

2012-08-26 Thread Laurent Gautier
On 2012-08-26 18:32, Dirk Eddelbuettel wrote: On 26 August 2012 at 18:25, Laurent Gautier wrote: | Hi, | | I just stumbled on the following apparent oddity: the package "datasets" | does not appear to export anything out of its namespace: | | > ns_datasets <- getNam

[Rd] Package "datasets" not exporting anything on a recent R-2.15.1-patched

2012-08-26 Thread Laurent Gautier
ges (example here with "utils"): > ns_utils <- getNamespace('utils') > head(getNamespaceExports(ns_utils)) [1] "?"".DollarNames" "adist""alarm" "apropos" [6] "aregexec" Is this a temporary glitch, or

Re: [Rd] read.csv trap

2011-02-11 Thread Laurent Gatto
n the csv file. Although no formal specification exist for the csv format, RFC 4180 [1] indicates that 'each line should contain the same number of fields throughout the file'. [1] http://tools.ietf.org/html/rfc4180 Best wishes, Laurent >  Here is an example and a workaround that runs count

Re: [Rd] OT: Reason/history behind ## notation for comments?

2010-09-22 Thread Laurent Gatto
ntation for the block containing the comment. Finally, comments beginning with ‘#’ are aligned to a column on the right...'. I guess that ## is the most wanted indentation for comments. Best wishes, Laurent On 22 September 2010 07:26, Henrik Bengtsson wrote: > Off topic, but since I'

Re: [Rd] Rserve graphics output [Was: R-devel Digest, Vol 90, Issue 20]

2010-08-22 Thread Laurent Gautier
On 22/08/10 17:55, Simon Urbanek wrote: On Aug 22, 2010, at 3:32 AM, Laurent wrote: On 21/08/10 23:31, Simon Urbanek wrote: On Aug 21, 2010, at 8:46 AM, Laurent wrote: On 21/08/10 12:00, r-devel-requ...@r-project.org wrote: On Aug 20, 2010, at 1:59 PM, Matt

Re: [Rd] R-devel Digest, Vol 90, Issue 20

2010-08-22 Thread Laurent
On 21/08/10 23:31, Simon Urbanek wrote: On Aug 21, 2010, at 8:46 AM, Laurent wrote: On 21/08/10 12:00, r-devel-requ...@r-project.org wrote: On Aug 20, 2010, at 1:59 PM, Matt Shotwell wrote: On Fri, 2010-08-20 at 12:58 -0400, Sharpie wrote: Donald Paul Winston wrote: (...) Donald Paul

Re: [Rd] R-devel Digest, Vol 90, Issue 20

2010-08-21 Thread Laurent
e licensing flavour for his contribution the patch seems to have joined (all ?) other submitted patches. (I don't get anything when running: svn log -r {2010-04-27}:HEAD | grep -i Shotwell ). Are there such patches included in the Revolution R sources, or are there plans to do so ? Laurent Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Disappearance of the file "NEWS"

2010-08-01 Thread Laurent
Dear R-developpers, The file NEWS disappeared in r5243, and the authoritative source of information for what has changed in R is in ./doc/NEWS.Rd. A quick glance at NEWS was extremely helpful for knowing what has changed, and whether building a (more) recent development version was needed to

Re: [Rd] how to call a function from C

2010-01-14 Thread Laurent Gautier
On 1/14/10 1:16 PM, Romain Francois wrote: On 01/14/2010 12:42 PM, Laurent Gautier wrote: Hi, In Rcpp, we now have a "Function" class to encapsulate functions (they cover all three kinds, but this may change). Just a note on that: there is probably no hurry to do so. rpy2 is a

Re: [Rd] how to call a function from C

2010-01-14 Thread Laurent Gautier
Hi, In Rcpp, we now have a "Function" class to encapsulate functions (they cover all three kinds, but this may change). Just a note on that: there is probably no hurry to do so. rpy2 is also having CLOSXP, BUILTINSXP, and SPECIALSXP represented as one function-like class and seems to be beha

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Laurent Gautier
On 1/2/10 11:41 PM, Romain Francois wrote: On 01/02/2010 11:12 PM, Duncan Murdoch wrote: On 02/01/2010 3:16 PM, Laurent Gautier wrote: On 1/2/10 8:53 PM, Duncan Murdoch wrote: Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan Murdoch wrote

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Laurent Gautier
On 1/2/10 8:28 PM, Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan Murdoch wrote: On 02/01/2010 11:36 AM, Laurent Gautier wrote: [Disclaimer: what is below reflects my understanding from reading the R source, others will correct where

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Laurent Gautier
On 1/2/10 8:53 PM, Duncan Murdoch wrote: Simon Urbanek wrote: On Jan 2, 2010, at 12:17 PM, Laurent Gautier wrote: On 1/2/10 5:56 PM, Duncan Murdoch wrote: On 02/01/2010 11:36 AM, Laurent Gautier wrote: [Disclaimer: what is below reflects my understanding from reading the R source, others

Re: [Rd] R_PreserveObject, R_ReleaseObject : reference counting needed ?

2010-01-02 Thread Laurent Gautier
On 1/2/10 5:50 PM, Romain Francois wrote: Thanks. On 01/02/2010 05:36 PM, Laurent Gautier wrote: [Disclaimer: what is below reflects my understanding from reading the R source, others will correct where deemed necessary] On 1/2/10 12:00 PM, r-devel-requ...@r-project.org wrote: (...) In

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Laurent Gautier
On 1/2/10 5:56 PM, Duncan Murdoch wrote: On 02/01/2010 11:36 AM, Laurent Gautier wrote: [Disclaimer: what is below reflects my understanding from reading the R source, others will correct where deemed necessary] On 1/2/10 12:00 PM, r-devel-requ...@r-project.org wrote: (...) I'd al

Re: [Rd] R-devel Digest, Vol 83, Issue 2

2010-01-02 Thread Laurent Gautier
[Disclaimer: what is below reflects my understanding from reading the R source, others will correct where deemed necessary] On 1/2/10 12:00 PM, r-devel-requ...@r-project.org wrote: Hello, We are currently making lots of changes to Rcpp (see the open Rcpp mailing list if interested [1] in the

Re: [Rd] raster support in graphics devices

2009-12-06 Thread Laurent Gautier
I can confirm. Last time I checked (that is recently), there was no way to do it at the C level (beside possibly extreme hacks trying to work around what R does not want to expose, or go for patched source trees and builds). What is the status of this patch (accepted ? rejected ? else ?) Thi

Re: [Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Laurent Gautier
Guillaume Yziquel wrote: Laurent Gautier a écrit : Anonymous R objects, that is without an associated symbol in R, can be passed to functions (and in that way makes a binding "take hold of R objects without using symbols"). For example, building R code made of anonymous obje

Re: [Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Laurent Gautier
Guillaume Yziquel wrote: Laurent Gautier a écrit : It does not have to be a functional language. To see it in use within a some-language-to-R bridge, you can check the source in JRI, rpy2. I can mostly speak for rpy2, and the way it is done there relies on both R and Python's GC. Creat

[Rd] :Re: PROTECT and OCaml GC.

2009-11-30 Thread Laurent Gautier
On Nov 28, 2009, at 7:50 PM, Guillaume Yziquel wrote: FWIW what I think you should be really looking at is R_PreserveObject/R_ReleaseObject. OK. Thanks. I would suggest looking at the many other R embeddings in other languages that already exist since I don't think you approach is very viable

Re: [Rd] Issue when calling deparse(substitute(x)) from C with "anonymous" R vectors ?

2009-11-19 Thread Laurent Gautier
imple answer is: don't do that. It is unclear what is a reasonable label to give in such a case: maybe simply 'x' and 'y'? On Thu, 19 Nov 2009, Laurent Gautier wrote: Dear list, When calling R from C, what appears like a spurious error can be triggered during the executi

[Rd] Issue when calling deparse(substitute(x)) from C with "anonymous" R vectors ?

2009-11-18 Thread Laurent Gautier
Dear list, When calling R from C, what appears like a spurious error can be triggered during the execution of chisq.test(x, y). This is happening when the following conditions are met: - x and y are "anonymous" C-level R vectors (they do not have a symbol), but they are protected from garbag

Re: [Rd] Why is strptime always returning a vector of length 9 ?

2009-08-09 Thread laurent
> > $ mon : int [1:6] 2 4 10 10 6 6 > > $ year : int [1:6] 107 107 108 108 109 109 > > $ wday : int [1:6] 5 4 3 3 4 4 > > $ yday : int [1:6] 67 150 316 316 210 210 > > $ isdst: int [1:6] 0 1 0 0 1 1 > > > > and read R News 4/1 for more. > > > &

[Rd] Why is strptime always returning a vector of length 9 ?

2009-08-09 Thread laurent
Dear List, I am having an issue with strptime (see below). I can reproduce it on R-2.8, R-2.9, and R-2.10-dev, I tempted to see either a bug or my misunderstanding (and then I just don't currently see where). # setup: x <- c("March 09, 2007", "May 31, 2007", "November 12, 2008", "November 12, 20

Re: [Rd] Suggestion: Dimension-sensitive attributes

2009-07-09 Thread Laurent Gautier
be fewer. * `dim<-`, but this may raise the same problem of coercing dimmeta of different classes. Disabling "dim<-" is, I think, choosing sanity for now. ...and I agree with the rest of your comments. Same for me (about your comments). This thread seems to be leading to som

Re: [Rd] Suggestion: Dimension-sensitive attributes

2009-07-09 Thread Laurent Gautier
case can already be modelled by a data.frame. L. Enrique -Original Message- From: Laurent Gautier [mailto:lgaut...@gmail.com] Sent: jueves, 09 de julio de 2009 14:15 Cc: Heinz Tuechler; Bengoechea Bartolomé Enrique (SIES 73); Tony Plate; Henrik Bengtsson; r-devel@r-project.org Subject:

Re: [Rd] Suggestion: Dimension-sensitive attributes

2009-07-09 Thread Laurent Gautier
Starting by working on an interface for such object(s) is probably the first step toward a unified solution, and this before about if and how R attributes are used. It would also help to ensure a smooth transition from the existing classes implementing a similar solution (first the interface i

Re: [Rd] In C, a fast way to slice a vector?

2009-05-12 Thread Laurent Gautier
r-devel-requ...@r-project.org wrote: Impressive stuff. Nice to see people giving some though to this. I will explore the packages you mentioned. Thank you Saptarshi Guha On Mon, May 11, 2009 at 12:37 AM, Patrick Aboyoun wrote: Saptarshi, I know of two alternatives you can use to do fast

Re: [Rd] Follow-up on the wish for a visibility flag with tryEval ?

2009-03-08 Thread Laurent Gautier
h wrote: On 07/03/2009 9:51 AM, Laurent Gautier wrote: Dear list, Did the wish for an official API for evaluating expressions while keeping an eye on the R_Visible flag (see: https://stat.ethz.ch/pipermail/r-devel/2007-April/045258.html ) lead to something ? I could not find a sign of it the c

[Rd] Follow-up on the wish for a visibility flag with tryEval ?

2009-03-07 Thread Laurent Gautier
Dear list, Did the wish for an official API for evaluating expressions while keeping an eye on the R_Visible flag (see: https://stat.ethz.ch/pipermail/r-devel/2007-April/045258.html ) lead to something ? I could not find a sign of it the current (R-2.8.1 and R-2.9-dev) R defines. Thanks, L

[Rd] Sending an interrupt signal to an embedded R

2009-01-09 Thread Laurent Gautier
documentation on the topic I would have missed ? Thanks, Laurent __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] unrelated software install triggering an error from R's install script on Mac OS X 10.5

2008-12-01 Thread Laurent Gautier
Simon Urbanek wrote: On Dec 1, 2008, at 6:11 AM, Laurent Gautier wrote: Stefan Evert wrote: The steps needed to generate the error are: - install a binary distribution of R (default location) - add R to the PATH Did you actually add /Library/Frameworks/R.framework/Resources/bin/ to your

Re: [Rd] unrelated software install triggering an error from R's install script on Mac OS X 10.5

2008-11-30 Thread Laurent Gautier
icities of Mac OS X, but that idea seems to be at least shared by the fink project (their default install puts /sw/bin ahead of all the rest). I suppose that there is a documentation for R-on-OS-X and that I overlooked it. Laurent Bes

[Rd] unrelated software install triggering an error from R's install script on Mac OS X 10.5

2008-11-29 Thread Laurent Gautier
s/R.framework/Resources/bin/install, and hard-code the right path to R_SHARE_DIR is obviously an option, but I would like to hear that something more elegant is possible. Laurent __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] problem with postscript/pdf plots, locales and embedded R

2008-11-16 Thread laurent
h changes that. > > ('Writing R Extensions'). > > On Sat, 15 Nov 2008, laurent wrote: > > > Thanks for the quick answer. > > > > The documentation for Sys.setlocale mentions the possibility of warning > > when LC_NUMERIC is set. > > > >

Re: [Rd] problem with postscript/pdf plots, locales and embedded R

2008-11-15 Thread laurent
parent shell. In the case the later is likely to cause trouble, would it be appropriate to issue a warning when R is initialized ? Laurent On Fri, 2008-11-14 at 19:37 +, Prof Brian Ripley wrote: > On Fri, 14 Nov 2008, laurent wrote: > > > Dear list, > > > > A prob

[Rd] problem with postscript/pdf plots, locales and embedded R

2008-11-14 Thread laurent
uot;C" ), but that could be overriding internationalization features otherwise in R. Any advice ? Thanks, Laurent __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] cairo device and pch="+"

2008-07-28 Thread Laurent Gautier
Dear list, I have spotted what could be a memory leak somewhere. The example below shows how to quickly use up RAM on a linux machine (the example is taylored for a 2Gb machine, change the size of the matrix m is needed). # --- m <- matrix(rnorm(130), nrow=6000, 6) X11(type="cairo") pairs(m) #

Re: [Rd] garbage collection, "preserved" variables, and different outcome depending on "--verbose" or not

2008-07-21 Thread Laurent Gautier
I just tried with R-devel (2.8.0 Under development (unstable) (2008-07-20 r46088), the problem does not appear with that version. Thanks, L. 2008/7/20 Laurent Gautier <[EMAIL PROTECTED]>: > 2008/7/20 Duncan Murdoch <[EMAIL PROTECTED]>: >> On 20/07/2008 10:02 AM,

Re: [Rd] garbage collection, "preserved" variables, and different outcome depending on "--verbose" or not

2008-07-20 Thread Laurent Gautier
2008/7/20 Duncan Murdoch <[EMAIL PROTECTED]>: > On 20/07/2008 10:02 AM, Laurent Gautier wrote: >> >> I tripped on that while crafting the example. >> >> The problem still exists when moving the "releases" in the middle, >> and removing the last &q

Re: [Rd] garbage collection, "preserved" variables, and different outcome depending on "--verbose" or not

2008-07-20 Thread Laurent Gautier
- make call "list(x)" * 3- return "x" to R */ SEXP x_R; int i; int n = INTEGER(n_R)[0]; /* Create a numerical vector "x_R" */ for (i=0; i: > On 20/07/2008 9:01 AM, Laurent Gautier wrote: >> >> Dear list, >> >> While trying

[Rd] garbage collection, "preserved" variables, and different outcome depending on "--verbose" or not

2008-07-20 Thread Laurent Gautier
Dear list, While trying to identify the root of a problem I am having with garbage collected variables, I have come across the following oddity: depending on whether --verbose is set or not, I obtain different results. I have made a small standalone example to demonstrate it. The example is very

Re: [Rd] Embedded R, last errormessage, and stack smashing

2008-07-16 Thread Laurent Gautier
2008/7/16 Jeffrey Horner <[EMAIL PROTECTED]>: > Laurent Gautier wrote on 07/16/2008 08:02 AM: >> >> The only way to overcome the problem I can find is to tweak the >> R_CStackLimit with: >> >> R_CStackLimit = (uintptr_t) -1; >> >> The question I a

Re: [Rd] Embedded R, last errormessage, and stack smashing

2008-07-16 Thread Laurent Gautier
very sure of how an appropriate value can be determined. I looked around, and the JRI (Java/R Interface) is just disabling stack checking for example. Thanks, Laurent 2008/6/30 Laurent Gautier <[EMAIL PROTECTED]>: > Dear list, > > I am having an embedded R, dying with >

[Rd] Embedded R, last errormessage, and stack smashing

2008-06-30 Thread Laurent Gautier
Dear list, I am having an embedded R, dying with *** stack smashing detected *** in one specific case. My code is such as I evaluate R expression with C code like res = R_tryEval(expr, env, &error); and in case of error, get the error message (usually sucessfully) with code like below: SEXP ge

Re: [Rd] Error in "getClass" when calling the function "show"

2008-06-10 Thread Laurent Gautier
2008/6/10 Prof Brian Ripley <[EMAIL PROTECTED]>: > On Tue, 10 Jun 2008, Laurent Gautier wrote: > >> 2008/6/10 Prof Brian Ripley <[EMAIL PROTECTED]>: >>> >>> showDefault has >>> >>> clDef <- getClass(class(object)) >>> >&g

Re: [Rd] Error in "getClass" when calling the function "show"

2008-06-10 Thread Laurent Gautier
re" object="traceable" > showMethods("print") Function "print": > getMethod("show", "ANY") Method Definition (Class "derivedDefaultMethod"): function (object) showDefault(object, FALSE) Signatures: object target

[Rd] Error in "getClass" when calling the function "show"

2008-06-09 Thread Laurent Gautier
x-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base Laurent __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Makevars or congiure for multi platforms

2008-06-08 Thread Laurent Gautier
2008/6/7 <[EMAIL PROTECTED]>: > > Message: 11 > Date: Sat, 7 Jun 2008 03:38:23 +0900 > From: "Tadashi Kadowaki" <[EMAIL PROTECTED]> > Subject: [Rd] Makevars or congiure for multi platforms > To: r-devel@r-project.org > Message-ID: ><[EMAIL PROTECTED]> > Content-Type: text/plain; charset=IS

[Rd] value returned by findFun when the name cannot be found.

2008-05-24 Thread Laurent Gautier
at is returned then ? (I am a little lost in the nested calls within "error"). Thanks, Laurent __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Experimental R_has_slot() utility

2008-03-15 Thread Laurent Gautier
2008/3/16, Martin Maechler <[EMAIL PROTECTED]>: > >>>>> "LG" == Laurent Gautier <[EMAIL PROTECTED]> > >>>>> on Sat, 15 Mar 2008 16:24:26 +0800 writes: > > LG> Dear list, The utility "R_has_slot" ment

  1   2   >