Re: [Rd] Depth of protection stack?

2009-09-03 Thread Simon Urbanek
t the current depth reached? extern int R_PPStackTop; (use for debugging purposes only!) Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Running an expression 1MN times using embedded R

2009-09-03 Thread Simon Urbanek
x27;s wrong: a.cc:54: warning: control reaches end of non-void function You simply forgot to add return to rh_status so it's returning junk which crashes (since it's not a valid SEXP). Cheers, Simon Much thanks for your time Regards Saptarshi BT OUTPUT: #0 0x2b499ca4

Re: [Rd] Rscript and default packages

2009-09-04 Thread Simon Urbanek
script. Well, what's wrong with: #!/usr/bin/Rscript --default-packages=base ginaz:sandbox$ time ./scr real0m0.045s user0m0.027s sys 0m0.017s .. as opposed to #!/usr/bin/Rscript --default-packages=base ginaz:sandbox$ time ./scr real0m0.201s user0m0.166s sys 0m0.034s

Re: [Rd] Rscript and default packages

2009-09-04 Thread Simon Urbanek
On Sep 4, 2009, at 10:20 , Simon Urbanek wrote: On Sep 3, 2009, at 13:52 , Romain Francois wrote: On 09/03/2009 05:23 PM, Duncan Murdoch wrote: On 03/09/2009 9:53 AM, Romain Francois wrote: Hi, Is is possible to embed inside an R script, the name of the default packages to be loaded

Re: [Rd] enabling core dumps

2009-09-04 Thread Simon Urbanek
n the last line. Also some systems put core dumps in a dedicated directory, not in the current one. If in doubt, google for core dumps and your distro - this is not really an R issue ... Cheers, Simon __ 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 Simon Urbanek
it doesn't tackle the issue - objects can go out of scope by other means than just rm(), e.g.: f <- function() { ...; myGreatObject } f() # the great object is gone now since it was not assigned anywhere Sounds like rather common problem people may face, but unfortunately

Re: [Rd] Running two R instances at the same time

2009-09-05 Thread Simon Urbanek
2"; #etc. while ($children) { wait; $children--; } print "Jobs done.\n"; Fino:sandbox$ ./tt job 1 started job 2 started job 1 done job 2 done Jobs done. (replace sleep by your R invocation ... use your imagination to improve it since it's admittedly very crude but helps to trac

Re: [Rd] Reissue: Base "Object" class to use in S4 slot specification

2009-09-08 Thread Simon Urbanek
On Sep 8, 2009, at 12:39 , Simon Urbanek wrote: On Sep 8, 2009, at 12:14 , Patrick Aboyoun wrote: This is a reissue of a question I had asked a few weeks ago to see if anyone had any thoughts on the matter. I am looking to have slot in an S4 class definition that can take any (S3 or S4

Re: [Rd] Reissue: Base "Object" class to use in S4 slot specification

2009-09-08 Thread Simon Urbanek
NY" will accept any type in R: > setClass("foo",representation(a="ANY")) [1] "foo" > new("foo",a=factor()) An object of class "foo" Slot "a": factor(0) Levels: "ANY" is not an S4 class (and neither are various other ty

Re: [Rd] Finding the environment of a promise

2009-09-09 Thread Simon Urbanek
27;s not something that is or should be available at R level as it's an internal implementation detail). Cheers, Simon force(code) } f({ a <- 1 b <- 2 }) On Wed, Sep 9, 2009 at 10:30 AM, Hadley Wickham wrote: Hi all, Is it possible to determine the environment in which

Re: [Rd] Non-GPL packages for R

2009-09-11 Thread Simon Urbanek
permissive open source licenses). The point was open distribution as Peter pointed out so GPL-compatible licenses would be one possibility (although it also disallows some open source licenses). Cheers, Simon 2) r-forge could be left "buyer beware" using DESCRIPTION information

Re: [Rd] 2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze

2009-09-16 Thread Simon Urbanek
e resulting R) works just fine for me on lenny (modulo the --prefix). Cheers, Simon but below is my build script, my console output, and the output of uname -r. I am currently dependent on the development version of a package, so I'd like to get R-devel up and running if possible. I am s

Re: [Rd] Windows Source Install Without Rtools

2009-09-17 Thread Simon Urbanek
more explicit we have to make it...) Cheers, Simon On Thu, Sep 17, 2009 at 12:19 PM, Dirk Eddelbuettel wrote: On 17 September 2009 at 11:32, Gabor Grothendieck wrote: | Regarding this from this week: | | 2.10.0 PACKAGE INSTALLATION (Windows) | It is possible to install source packages wi

Re: [Rd] Windows Source Install Without Rtools

2009-09-17 Thread Simon Urbanek
e) sources, or to gzipped package 'tar' archives. The library tree [...] Cheers, S On Thu, Sep 17, 2009 at 3:58 PM, Simon Urbanek wrote: On Sep 17, 2009, at 12:43 , Gabor Grothendieck wrote: Thanks. Perhaps someone in the core group can still provide explicit information on h

Re: [Rd] basename returns "." not in filename (PR#13958)

2009-09-18 Thread Simon Urbanek
pecifies a directory "bar" at the path "/foo", hence the name is "bar" ("" would make no sense of course). Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] basename returns "." not in filename (PR#13958)

2009-09-18 Thread Simon Urbanek
o implement your pattern specification (just FWIW it's non- standard and requirement of trailing slashes does lead to very nasty problems for the user). Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] basename returns "." not in filename (PR#13958)

2009-09-18 Thread simon . urbanek
states the behavior as well). The =20= fact that you are trying to use the wrong tool for your purpose =20 doesn't mean that the tool is broken. I would advise you to ask on R-=20 help how to implement your pattern specification (just FWIW it's non-=20 standard and requirement of trailing slashes does lead to very nasty =20 problems for the user). Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R with Java

2009-09-21 Thread Simon Urbanek
specific reason for using JRI (R embedding) there are more simple solutions such as Rserve based on the same API - but the choice depends on what exactly your applications is doing) Cheers, Simon __ R-devel@r-project.org mailing list https://stat.

Re: [Rd] Snow leopard ./configure "cannot compile a simple Fortran program"

2009-09-22 Thread Simon Urbanek
fferent between gcc (64-bit) and gfortran (32-bit)! Cheers, Simon PS: There is usually no need to compile R from sources on OS X - see http://r.research.att.com/ for the latest R release in both 32 and 64-bit for Leopard/Snow Leopard. checking how to get verbose linking output from gcc -

Re: [Rd] How do I access class slots from C?

2009-09-29 Thread Simon Urbanek
rep" @d595b0 06 LANGSXP g0c0 [] @80ae44 01 SYMSXP g1c0 [MARK,gp=0x4000] "/" @1bf8ce8 14 REALSXP g0c1 [] (len=1, tl=0) 1 @1dbf1ac 01 SYMSXP g0c0 [MARK] "nAssets" TAG: @9450fc 01 SYMSXP g1c0 [MARK] "times" @1dbf1ac 01 SYMSXP g0c0 [MARK] &quo

Re: [Rd] How do I access class slots from C?

2009-09-29 Thread Simon Urbanek
MArtin, On Sep 29, 2009, at 12:17 , Martin Morgan wrote: Simon Urbanek wrote: Abhijit, as for your subject - it's GET_SLOT, but why don't you just use ParseVector and eval instead of hand- crafting C code that calls the evaluator? That latter is way more error prone and the erro

Re: [Rd] Problems connecting to httpd help server with some browsers

2009-09-29 Thread Simon Urbanek
ror issue as well (although I'd be a bit surprised if konqueror was not 1.1- capable..). Thanks, Simon Both konqueror and lynx are able to browse the static html files just fine. Firefox and Opera work fine with the httpd server on the same computer. Does anybody else see similar sym

Re: [Rd] Problems connecting to httpd help server with some browsers

2009-09-30 Thread Simon Urbanek
Thanks, Jeff, good catch. Now committed. Simon On Sep 29, 2009, at 18:27 , Jeff Horner wrote: Simon Urbanek wrote: [...] I don't have konqueror at hand, so I have tested and fixed the lynx case (lynx is acting as an HTTP/1.0 client and expects non- persistent connection). With some luc

Re: [Rd] R 2.9.2 crashes when sorting latin1-encoded strings

2009-09-30 Thread Simon Urbanek
needed. Normally R uses the native encoding of the locale you're running in. If you are dealing with files from other locales, you have to tell R accordingly - in most cases it's better to re- encode the strings (?iconv) than to work with the foreign encoding. Cheers, Simon Ou

Re: [Rd] How to compile R with command completion?

2009-09-30 Thread Simon Urbanek
line is too old? Maybe you have a readline-replacement library (e.g. libedit) that poses as readline? Try installing some recent readline (incl. -dev part) - the current version is 6.0. If that doesn't help, look at config.log around the rl_completion_matches. Cheers, Simon How sho

Re: [Rd] How to compile R with command completion?

2009-09-30 Thread Simon Urbanek
b64 -- did you build it just in 32-bit?) Cheers, Simon On Sep 30, 2009, at 16:30 , Peng Yu wrote: On Wed, Sep 30, 2009 at 9:58 AM, Simon Urbanek wrote: On Sep 30, 2009, at 10:13 , Peng Yu wrote: I compiled R-2.9.2 from source on Cent OS. But the compile R program does not support command

Re: [Rd] creating environments in package's C code

2009-10-01 Thread Simon Urbanek
the function that does it, e.g., Rf_NewEnvironment(R_NilValue, R_NilValue, parent) it's not part of the official API (headers) but it is visible. For hashed environments it's R_NewHashedEnv(). Cheers, Simon __ R-devel@r-project.org mailing

Re: [Rd] creating environments in package's C code

2009-10-01 Thread Simon Urbanek
ing through the headers (and sometimes even through the main sources). Cheers, Simon and an example that creates a new environment and then assigns a variable named OK an integer vector length 1 with value 0: SEXP env = NewEnv(R_GlobalEnv); defineVar(install("OK"),NewI

Re: [Rd] Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'character' & 'getEncChar' must be called on a CHARSXP

2009-10-01 Thread Simon Urbanek
Saptarshi, how did you create those lists? Can you send us the code? If not, can you put up the .RData file? Without a reproducible example this is hard to debug ... Thanks, Simon On Oct 1, 2009, at 14:26 , Saptarshi Guha wrote: Hello, I have list of 600K lists, each sublist a list of

Re: [Rd] Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'character' & 'getEncChar' must be called on a CHARSXP

2009-10-01 Thread Simon Urbanek
low is way incomplete, you can have the bug pretty much anywhere out of sight so there is not much we can help you with... Cheers, Simon I can go through the code (below) Now if instead of A0-A3 and B0-B3, i simply create a RAWSEXP and copy the the raw bytes (in kvhold) return this list of t

Re: [Rd] Compiling with High Performance Fortran

2009-10-02 Thread Simon Urbanek
compiler is GNU Fortran so you may test your code with that (it also supported OpenMP which effectively supersedes HPF). Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] compiling packages without Framework and CoreFoundation options on OSX

2009-10-08 Thread Simon Urbanek
ion that you're heading in a very wrong direction (but you didn't tell us what you're really up to so that's just a speculation). It should be entirely irrelevant for you what switches are used, because packages get all necessary switches from R, so they never need to worry about them. If you do, then it's highly likely that you're doing something wrong. Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [R-SIG-Mac] rnorm.halton

2009-10-10 Thread Simon Urbanek
or C) or your C code is not 64-bit clean (i.e. makes some 32-bit assumptions that are not true in 64-bit environment - check the use of "long" data types and pointers). Again, the solution is to fix the code to be clean, it will still be the same for both 32-bit and 64-bi

Re: [Rd] [R-SIG-Mac] rnorm.halton

2009-10-10 Thread Simon Urbanek
include both 32-bit and 64-bit -- which one gets started depends on the --arch flag, see R docs for details on multi- arch installations). Cheers, Simon I suspect I need to have a quasiRNG.c file where I will use preprocessor statement that will select the good version of the functio

Re: [Rd] Help with OCaml bindings for R interpreter.

2009-10-10 Thread Simon Urbanek
ile that binary at install time. Cheers, Simon Could anyone provide generic information on this topic, or point me to the right documentation? All the best, -- Guillaume Yziquel http://yziquel.homelinux.org/ __ R-devel@r-project.org mai

Re: [Rd] R on Google Android

2009-10-11 Thread Simon Urbanek
oid that when good people has already done an amazing job :-). People have proposed that and tried that long time ago, but I don't think anyone succeeded. Cheers, Simon Cheers, Mikkel Meyer Andersen. [1]: http://finzi.psych.upenn.edu/Rhelp08/2009-February/187425.html [2]: http

Re: [Rd] R on Google Android

2009-10-11 Thread Simon Urbanek
On Oct 11, 2009, at 9:17 PM, Mikkel Meyer Andersen wrote: Simon, Thanks for your answer. Do you have a link describing the procedure on compiling for iPhone or is it really just ready out of the box? You can compile R itself (libR) out of the box just using regular cross-compilation

Re: [Rd] Mac R spinning wheel with Package Manager (PR#14005)

2009-10-14 Thread simon . urbanek
(moving to the proper mailing list: R-SIG-Mac - this is not a bug so far!) James, this look like your internet access is stalling R -- it's not really R freezing but your internet. Try using a different mirror and/or check your internet connection. Cheers, Simon On Oct 13, 2009,

Re: [Rd] Question when compiling source code with VC++

2009-10-16 Thread Simon Urbanek
something is "usually" used is not necessarily a very good indicator -- it's better if you know what you're doing ;). Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Fixing html help port in 2.10

2009-10-16 Thread Simon Urbanek
e help links in 2.9 and earlier). But again, unless we know what you're up to we can't help you with solutions... Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Confusion regarding allocating Matrices.

2009-10-24 Thread Simon Urbanek
ere you create the R object). It's also very trivial to implement. Cheers, Simon Abhijit Bera On Sat, Oct 24, 2009 at 10:06 PM, Douglas Bates wrote: On Fri, Oct 23, 2009 at 2:02 PM, Abhijit Bera wrote: Sorry, I made a mistake while writing the code. The declaration of Data sho

Re: [Rd] R on maemo

2009-10-27 Thread Simon Urbanek
useful application on a mobile device -- IMHO the future is in a thin mobile client accessing the cloud (which runs R among other things) since there is no point in trying to use the low-power CPUs for computing. Cheers, Simon __ R-devel@r-

Re: [Rd] Help with lang4

2009-10-29 Thread Simon Urbanek
Elt(e); SEXP arg4Elt = lang1(arg4); SETCDR(last, arg4Elt); In general, I'd avoid SETCDR -- why not use CONS/LCONS? That is the generic way to do this (I'd suggest some reading about the fundamentals of it) -- langX/listX are just convenience macr

Re: [Rd] R 2.10.0 Mac OS X 10.6 (PR#14058)

2009-11-11 Thread simon . urbanek
Stephen, I cannot reproduce it (using Leopard build). Please supply full information (including sessionInfo() and version of the GUI used) as required by the posing guide. Thanks, Simon On Nov 11, 2009, at 7:50 , step...@prollenium.com wrote: > > --Apple-Mail-56-463481941 >

Re: [Rd] Problem building package for R 2.10.0 on Mac OS X

2009-11-16 Thread Simon Urbanek
t; means that your package works without those packages but can have improved functionality with them. In your case the example breaks if you don't have vegan - thus the package doesn't really work without vegan. (As of why vegan is not there that is my problem ;)) Thanks for the r

Re: [Rd] Including local dynamic libraries

2009-11-20 Thread Simon Urbanek
On Nov 20, 2009, at 3:07 PM, Romain Francois wrote: On 11/20/2009 08:43 PM, Elana Fertig wrote: Hi All, I am trying to install the package rjags into a local library on a machine for which I do not have root permissions. Using the command: R CMD INSTALL --configure-args="--with-jags-include=

Re: [Rd] R strings, null-terminated or size delimited?

2009-11-21 Thread Simon Urbanek
thinking of CHARSXPs and INTSXPs for the moment... Those are entirely different - CHARSXP are not vectors but strings (see mkChar et al., CHAR, ...) and INTSXP are integer arrays (in C speak) accessed using INTEGER. Please read R-exts - it's better than

Re: [Rd] Calling default method for primitive functions

2009-11-23 Thread Simon Urbanek
ass = "a") a <- new_a(1:5) "[.a" <- function(x, i, j, ...) { new_a(x[, j, ]) What about new_a(unclass(x)[, j,]) Cheers, Simon } a[, 5] Thanks, Hadley -- http://had.co.nz/ __ R-devel@r-project.org mailing list https://st

Re: [Rd] Link to pdf documentation from other package ?

2009-11-24 Thread Simon Urbanek
ithin the dynamic help that could point to any file on the file system. That is already implemented but not allowed in unsafe directories for security reasons (see previous discussion). Cheers, Simon __ R-devel@r-project.org mailing list

Re: [Rd] Broken installer (PR#14083)

2009-11-24 Thread Simon Urbanek
this. You are, of course, wrong because what you're looking at is the Apple gcc version which is the version of the driver and the cc part (it is the gcc-42 tree of Apple). The fortran merged unto the Apple gcc branch is indeed 4.2.4. Cheers,

Re: [Rd] Question R's parser : - parsing "x=\n 1"

2009-11-24 Thread Simon Urbanek
On Nov 25, 2009, at 1:03 AM, Saptarshi Guha wrote: Hello I was reading the source main/src/gram.y and had one question, how does R parse x = 1 According the grammar: prog: END_OF_INPUT{ return 0; } | '\n'{ return xxv

Re: [Rd] compiling on snow leopard: Cocoa errors?!?!?!

2009-11-26 Thread Simon Urbanek
Paul, at a first glance that seems like an issue in your system to me since the errors come from system headers and not from our code. Which compilers are you using and which Xcode version? Cheers, Simon On Nov 26, 2009, at 1:16 PM, Homer Paul Benton wrote: Dear R-gurus, I'm tryi

Re: [Rd] compiling on snow leopard: Cocoa errors?!?!?!

2009-11-26 Thread Simon Urbanek
> > and xcode 3.2 (1610) > > At the risk of sounding stupid, I compiled the netCDF library and the > compiliers seemed happy for that. ?!?! > NetCDF doesn't use anything from the system so even wrong compilers won't throw it off. Cheers, Simon > Cheers, &g

Re: [Rd] PROTECT and OCaml GC.

2009-11-29 Thread Simon Urbanek
eally looking at is R_PreserveObject/R_ReleaseObject. 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 (but I think I expressed that already before). Cheers, Simon > I'm using C as th

Re: [Rd] PROTECT and OCaml GC.

2009-11-30 Thread Simon Urbanek
Guillaume, On Nov 29, 2009, at 13:57 , Guillaume Yziquel wrote: Simon Urbanek a écrit : 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

Re: [Rd] PROTECT and OCaml GC.

2009-11-30 Thread Simon Urbanek
On Nov 30, 2009, at 12:08 , Guillaume Yziquel wrote: Simon Urbanek a écrit : You're talking about two entirely different things -- bypassing the API is a very bad idea, but it has nothing to do with your last paragraph. It's very good to hear that it's two different things

Re: [Rd] PROTECT and OCaml GC.

2009-11-30 Thread Simon Urbanek
On Nov 30, 2009, at 13:14 , Guillaume Yziquel wrote: Simon Urbanek a écrit : Because I've been unable to find what exactly applyClosure or eval requires, when it comes to the structure of the argument LANGSXP. For example. LANGSXP is simply a pairlist representing the expression, e.

Re: [Rd] PROTECT and OCaml GC.

2009-11-30 Thread Simon Urbanek
On Nov 30, 2009, at 16:07 , Guillaume Yziquel wrote: Simon Urbanek a écrit : And it goes then to my other question: How can you pass to eval a LANGSXP where the CAR is an *anonymous* function, no SYMSXP involved? You just pass it as value of the call. I suspect the reason it doesn&#

Re: [Rd] raster support in graphics devices

2009-12-01 Thread Simon Urbanek
caused unwanted side effects (see the constant anti- aliasing discussions). Cheers, Simon It's always good to have more functionality. However, I certainly hope that most of the R community stick to vector graphics (with conservative colour use), unless it is absolutely necessary to do othe

Re: [Rd] PROTECT and OCaml GC.

2009-12-01 Thread Simon Urbanek
On Dec 1, 2009, at 8:32 PM, Guillaume Yziquel wrote: > Simon Urbanek a écrit : >> You just pass it as value of the call. I suspect the reason it doesn't work >> is in your code, not in the facility (note that the link above is useless >> since the constructio

Re: [Rd] Bug in R evaluating a huge instruction (PR#14096)

2009-12-02 Thread Simon Urbanek
be of any length). Cheers, Simon Duncan Murdoch wrote: On 01/12/2009 12:50 AM, Jean Couteau wrote: Thanks for your time Duncan, I join here the instruction that is not correct, hoping that might help you. The file is encoded in utf-8 so you should not have any problem reading it. I

Re: [Rd] Macintosh R.app crashing (PR#14100)

2009-12-02 Thread Simon Urbanek
time to start R once given that you started R.app 50 times ;). If what you say is true it takes 5 seconds to verify that it crashes at the same point... Please use the R-SIG-Mac list as you are asked to and supply details (at the least the crash report, sessionInfo() and version of the G

Re: [Rd] raster support in graphics devices

2009-12-05 Thread Simon Urbanek
a connection API so packages (and devices) can use it. Cheers, Simon > On 12/05/2009 07:06 PM, Tobias Verbeke wrote: >> >> Hi, >> >> Gabor Grothendieck wrote: >> >>> Its not just the time. Its also the nuisance of having to manage files >>>

Re: [Rd] raster support in graphics devices

2009-12-06 Thread Simon Urbanek
On Dec 6, 2009, at 8:24 AM, Romain Francois wrote: > On 12/06/2009 01:20 AM, Simon Urbanek wrote: >> On Dec 5, 2009, at 4:11 PM, Romain Francois wrote: >> >>> I agree too, I was just trying to put on the balance the amount of work >>> that would requir

Re: [Rd] Missing html help files with R 2.10.0 (PR#14134)

2009-12-12 Thread Simon Urbanek
hat as yet). > The bug is that the GUI used a static file instead of the dynamic help. That is now fixed (the same was also true for the Data Manager, both should be now fixed, i.e., use the dynamic help instead). Thanks, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] as.data.frame requires a lot of memory (PR#14140)

2009-12-14 Thread Simon Urbanek
exact example there is an even more efficient way: dfn <- rep(data.frame(X=rep(0, 4096)), 4096) dfn <- do.call("cbind", dfn) it uses only a fraction more memory than the size of the entire object, but that's for entirely different reasons :). No, it's not good in general

Re: [Rd] R GUI editor window - help field does not return the help topic (PR#14146)

2009-12-16 Thread Simon Urbanek
estions is R-SIG-Mac (see "About R" in the GUI). Thanks, Simon On Dec 15, 2009, at 1:40 PM, y_alperov...@yahoo.fr wrote: > Full_Name: Yan Alperovych > Version: R 2.10.1, GUI 1.31 > OS: Mac OS 10.6.2 > Submission from: (NULL) (139.165.27.244) > > > Hello everyone,

Re: [Rd] R GUI editor window - help field does not return the help topic (PR#14146)

2009-12-16 Thread simon . urbanek
Yan, On Dec 16, 2009, at 10:13 AM, Yan ALPEROVYCH wrote: > Hello Simon,=20 >=20 > I did read the posting guide, and I did as your colleague from the GUI = discussion instructed me to (Forwarded text bellow). It's ok, I got my = lesson.=20 >=20 > The session info: >=

Re: [Rd] readCitationFile encoding

2009-12-31 Thread Simon Urbanek
;>> a shortcut to jump immediately to the utils tests? >> >> No, but many sections can be suppressed -- see check --help and the >> environment variables discussed in the R Internals manual. > > Ahh - good hint - help("check") wasn't really fruitful. Howev

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

2010-01-02 Thread Simon Urbanek
g else you simply cannot use it so you have to use Preserve/Release. As a side note Preserve/Release is merely a convenience call, it is often more efficient to simply assign the object to another object you have control of (which is all Preserve really does). Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2010-01-02 Thread Simon Urbanek
eal with the access so you can easily perform worse than Preserve/Release if you're not careful. As a side note - the best way (IMHO) to deal with all those issues is to use external pointers because a) you get very efficient C finalizers b) you can directly (and very efficiently) tie li

[Rd] R object protection [Was: R-devel Digest, Vol 83, Issue 2]

2010-01-02 Thread Simon Urbanek
On Jan 2, 2010, at 4:08 PM, Laurent Gautier wrote: > 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: &g

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

2010-01-02 Thread Simon Urbanek
On Jan 2, 2010, at 5: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: >>>>>

[Rd] iterative list rm [Was: R-devel Digest, Vol 83, Issue 2]

2010-01-02 Thread Simon Urbanek
On Jan 2, 2010, at 5: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: >>>>>

[Rd] R_ext manual: type cast in C function registra tion

2010-01-07 Thread Simon Anders
3}, {NULL, NULL, 0} }; in order to get rid of an unnecessary compiler warning. Cheers Simon +--- | Dr. Simon Anders, Dipl.-Phys. | European Molecular Biology Laboratory (EMBL), Heidelberg | office phone +49-6221-387-8632 | preferred (permanent) e-mail: sand...@fs.tum.de ___

Re: [Rd] (PR#14181) Error description not prompted but R crashes instead

2010-01-12 Thread simon . urbanek
R 2.10.1 and hence a doubly pointless report ... Cheers, Simon > On Mon, 11 Jan 2010, pdemou...@gmail.com wrote: > >> Full_Name: Philippe Demoulin >> Version: R version 2.10.0 (2009-10-26) >> OS: OSX 10.4.11 on PPC >> Submission from: (NULL) (80.236.193.215)

Re: [Rd] Wishlist: system.file(... package) throw an error if package not installed/path not found

2010-01-14 Thread Simon Urbanek
f you want to throw an error in a scalar context than to lose all results because of one vector entry. And, yes, file.exists("") will indeed return FALSE (although it is entirely unrelated). Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] optional package dependency

2010-01-15 Thread Simon Urbanek
bad as they make it harder to programmatically determine the true "suggests". Hence I don't see why your should even pst them ;). Cheers, Simon And NAMESPACE brings up another issue in that being able to do conditional imports would be very useful for these cases, other

Re: [Rd] optional package dependency

2010-01-15 Thread Simon Urbanek
urt pointed out ... Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Using multicore with an open pdf device results in corrupt pdf (PR#14186)

2010-01-15 Thread Simon Urbanek
rprisingly). Cheers, Simon On Jan 15, 2010, at 9:15 , kolle...@stat.math.ethz.ch wrote: The attached code produces corrupted pdfs (test2.pdf, test4.pdf and test5.pdf). The resulting pdf depends on how many cores are available on the machine. I don't see why there should be any differe

Re: [Rd] CRAN: No MacOS X binary builds since January 7

2010-01-18 Thread Simon Urbanek
On Jan 18, 2010, at 7:53 , Henrik Bengtsson wrote: On Mon, Jan 18, 2010 at 1:36 AM, Prof Brian Ripley wrote: Not an issue for *this* list! I used this list to share this with package developers - not particularly MacOS X users. As a package provider I'd like to know when packages are not a

Re: [Rd] Copyright versus Licenses

2010-01-19 Thread Simon Urbanek
n as people read about certain details (e.g. from GNU FAQ) without understanding the underlying mechanisms and the implications. Cheers, Simon In closing, do the R developers believe that including a Copyright notice is imperative with a Copyright License? If so, what advice do they have

Re: [Rd] Stop packages and datasets to be loaded on startup.

2010-01-30 Thread Simon Urbanek
ot; are not loaded at all -- you can load the datasets package which will make them available, but they are not really "loaded". The minimal setup is simply R_DEFAULT_PACKAGES=NULL R --vanilla However, it's your responsibility to load any packages that your code needs in that case. Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Stop packages and datasets to be loaded on startup.

2010-01-31 Thread Simon Urbanek
On Jan 31, 2010, at 12:39 PM, Guillaume Yziquel wrote: > Simon Urbanek a écrit : >>> >>> So I gather that just setting R_DEFAULT_PACKAGES to NULL should be OK. But >>> then, what is the rather complicated stuff in the autoload() function in >>> littler.

Re: [Rd] LinkingTo and C++

2010-02-11 Thread Simon Urbanek
= "B") [1] "hello" However, your'e not really using the LinkingTo: facilities for the functions so it's essentially just helping you to find the header file. Cheers, Simon On Feb 11, 2010, at 4:08 AM, Romain Francois wrote: > Hello, > > I've be

Re: [Rd] LinkingTo and C++

2010-02-11 Thread Simon Urbanek
On Feb 11, 2010, at 12:24 PM, Romain Francois wrote: > Thanks. > > On 02/11/2010 05:55 PM, Simon Urbanek wrote: >> Romain, >> >> I think your'e confusing two entirely different concepts here: > > Yes. The name "LinkingTo" probably helped my

Re: [Rd] R Startup configuration file

2010-02-12 Thread Simon Urbanek
r story) and we already have reliable support for storing R objects (more than one in fact). Despite the fact that some used to claim human readability of XML in practice it turns out to be false, so I don't see any real benefits of XML in this context. Cheers, Simon The most reliable way

Re: [Rd] long integer in R?

2010-02-12 Thread Simon Urbanek
4) int and long are equivalent so you can simply use INTSXP. On 64-bit unix platforms (LP64) there is no way to losslessly use it (other than raw) but in most applications you can simply use REALSXP as it gives you at least 52-bits of precision which its sufficient for most applications. Che

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

2010-02-12 Thread Simon Urbanek
dexed by an n-column character matrix. The indices are matched against the dimension names. NA indices are propagated to the result. Unmatched values and "" are not allowed and result in an error. Cheers, Simon ---On Windows-- x

Re: [Rd] Copyright versus Licenses

2010-02-13 Thread Simon Urbanek
On Feb 12, 2010, at 7:14 PM, Dominick Samperi wrote: > On Tue, Jan 19, 2010 at 11:54 AM, Simon Urbanek > wrote: > Copyright is the right that the author of an original work holds > automatically (unless someone else can claim to own his work - e.g. his > employer etc.)

Re: [Rd] long integer in R?

2010-02-13 Thread Simon Urbanek
On Feb 13, 2010, at 5:04 PM, blue sky wrote: > On Fri, Feb 12, 2010 at 12:06 PM, Simon Urbanek > wrote: >> >> On Feb 12, 2010, at 12:33 , blue sky wrote: >> >>> R-exts.pdf dosen't list many types that are supported in C++, for example, >>> lo

Re: [Rd] libgfortran misplaced in Mac OS X R install (PR#14226)

2010-03-03 Thread Simon Urbanek
. Cheers, Simon On Mar 2, 2010, at 11:45 , tbr...@virginia.edu wrote: Full_Name: Timothy Brick Version: 2.10 OS: Mac OS X (seen on both 10.6 and 10.5) Submission from: (NULL) (63.255.24.5) When using install.packages in R on Mac OS X, packages that require gfortran throws an error (Example

Re: [Rd] What is pairlist in R-ints.pdf?

2010-03-03 Thread Simon Urbanek
" would be ambiguous (in the current R lists are implemented as generic vectors, not as linked lists). Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] (PR#14226) -- Re: libgfortran misplaced in Mac OS X R install (PR#14226)

2010-03-04 Thread Simon Urbanek
ever, that this will lead to (possibly silent) errors if you forget to change it when switching to another R version, so I prefer to fix the package instead. Cheers, Simon The beta test users install the package using the following script: http://openmx.psyc.virginia.edu/getOpenMx.R .

Re: [Rd] Bug reporting system inquiry plus a bug report related to sort

2010-03-04 Thread Simon Urbanek
Just to calm the discussion a bit - we already have decided to go with Bugzilla, we created tools for the import of old PRs and the new bug system is up and running in a test phase. The current downtime is not directly related to that - the cause is being investigated. Cheers, Simon On

[Rd] distributable binary Mac packages [Was: libgfortran misplaced in Mac OS X R install]

2010-03-04 Thread Simon Urbanek
may be worth putting what I wrote below into the FAQ. Thanks, Simon On Thu, 4 Mar 2010, Simon Urbanek wrote: Hi Michael, On Mar 3, 2010, at 12:01 , Michael Spiegel wrote: I am the guy who compiles the OpenMx binaries. We would be delighted to place our package on CRAN, once the pr

Re: [Rd] CRAN nearly down?

2010-03-05 Thread Simon Urbanek
x27;t help it's your connection. Cheers, Simon (The web interface is very slow and install.packages() is timing out and giving me "service not available"). Paul = = = = = = = = = = = = = = ==

Re: [Rd] for help on building a R package with several R function and a bunch of c, c++

2010-03-08 Thread Simon Urbanek
same directory: R # load the library you just compiled dyn.load("foo.so") # test your code .C("tranptest", c("file1", "file2"), as.double(1,2,3,4)) Cheers, Simon Alex --- On Mon, 3/8/10, Romain Francois wrote: From: Romain Francois Subject: Re: [Rd

Re: [Rd] for help on building a R package with several R function and a bunch of c, c++

2010-03-08 Thread Simon Urbanek
pic I think ... Cheers, Simon On Mar 8, 2010, at 12:37 , Dirk Eddelbuettel wrote: Alex, Can you _please_ stop spamming r-devel? Romain and I repeatedly pointed the existence of the rcpp-devel list out to you. Please consider using it. There are existing packages that use what you want t

Re: [Rd] for help on building a R package with several R function and a bunch of c, c++

2010-03-08 Thread Simon Urbanek
can't tell -- use "R -d gdb" to run R in a debugger so you can look at the exact spot of the crash. Is it possible that you get thrown off by the 0-based indexing in C and opposed to 1-based indexing in R? in extern "C" void tranptest(char **fn, double *par) { you

<    6   7   8   9   10   11   12   13   14   15   >