Re: [Rd] Web apps on a R server

2015-08-24 Thread Simon Urbanek
On Aug 24, 2015, at 4:28 AM, arnaud gaboury arnaud.gabo...@gmail.com wrote: I want to deploy some R web apps with a clean separate of concerns: R code // applications. My choice for the R part is to use one of these two tools: - deployR[1] - OpenCPU[2] and JavaScript for web apps. OS

Re: [Rd] Multi-line comments in R

2015-08-19 Thread Simon Urbanek
https://stat.ethz.ch/pipermail/r-help//2009-February/381039.html On Aug 19, 2015, at 12:16 AM, Nathan Esau ne...@sfu.ca wrote: I was wondering why the decision was made long ago to never implement multi-line comments in R. I feel there are several argument to be made for why the R language

Re: [Rd] CRAN testing

2015-06-12 Thread Simon Urbanek
On Jun 12, 2015, at 1:24 AM, Mick Jordan mick.jor...@oracle.com wrote: Is the mechanism by which packages are tested on CRAN described anywhere? Is it by any chance written in R? The FastR https://bitbucket.org/allr/fastr/wiki/Home team is interested in running a virtual CRAN where we

Re: [Rd] Why my messages are filtered from the list?

2015-05-29 Thread Simon Urbanek
On May 29, 2015, at 1:05 AM, Ivan Popivanov ivan.popiva...@gmail.com wrote: Now I am getting confused. I see two postings from me in the archives: https://stat.ethz.ch/pipermail/r-devel/2015-May/071205.html https://stat.ethz.ch/pipermail/r-devel/2015-April/070982.html Were these actually

Re: [Rd] MetaCran website v1.0.0-alpha

2015-05-25 Thread Simon Urbanek
One issue I have with this is that it doesn't point to the original GitHub repositories of the packages, so you end up with additional repositories on Github in Gabor's name that have nothing to do with the actual Github repositories of the packages. I understand that it's technically

Re: [Rd] Alternative for wildcard gnu extension in Makevars

2015-05-15 Thread Simon Urbanek
On May 13, 2015, at 2:28 PM, Henrik Bengtsson henrik.bengts...@ucsf.edu wrote: While at it: 'Makevars' is an R invention (i.e. documentation of it is only available through the R docs), correct? /Henrik Well, it's just a Makefile fragment that gets included along with the rest of the

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

2015-05-03 Thread Simon Urbanek
Laurent, On May 3, 2015, at 8:07 PM, Laurent Gautier lgaut...@gmail.com 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 been initialized, but might not be the point here. The issue is that a Python

Re: [Rd] nested parallel workers

2015-03-30 Thread Simon Urbanek
On Mar 30, 2015, at 4:40 PM, Valerie Obenchain voben...@fredhutch.org wrote: On 03/25/2015 07:48 PM, Simon Urbanek wrote: On Mar 25, 2015, at 3:46 PM, Valerie Obenchain voben...@fredhutch.org wrote: Hi Simon, I'm having trouble with nested parallel workers, specifically, forking

Re: [Rd] About removing zlib from R-devel

2015-03-26 Thread Simon Urbanek
On Mar 26, 2015, at 12:09 PM, Gábor Csárdi csardi.ga...@gmail.com wrote: On Thu, Mar 26, 2015 at 8:49 AM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: [...] This means that the next version of R will probably not available on Ubuntu The 'next version of R' will be 3.2.0, and the

Re: [Rd] nested parallel workers

2015-03-25 Thread Simon Urbanek
On Mar 25, 2015, at 3:46 PM, Valerie Obenchain voben...@fredhutch.org wrote: Hi Simon, I'm having trouble with nested parallel workers, specifically, forking inside socket connections. You simply can't by definition - when you fork *all* the workers share the same connection inherited

Re: [Rd] Reduce memory peak when serializing to raw vectors

2015-03-17 Thread Simon Urbanek
efficient, unless I'm missing something. Michael On Tue, Mar 17, 2015 at 2:03 PM, Simon Urbanek simon.urba...@r-project.org wrote: Jorge, what you propose is not possible because the size of the output is unknown, that's why a dynamically growing PStream buffer is used - it cannot be pre

Re: [Rd] Color Coding in R-devel/NEWS

2015-02-18 Thread Simon Urbanek
On Feb 18, 2015, at 2:44 PM, Bryan Hanson han...@depauw.edu wrote: On this feed, which I think is the place we should monitor upcoming changes: http://developer.r-project.org/blosxom.cgi/R-devel/NEWS What is the significance of the green and pink highlighting? It highlights the changes

Re: [Rd] Invalid read of size 8

2015-02-05 Thread Simon Urbanek
As you can see from the stack trace the memory you're trying to use has already been released so it was not protected. Since you only provided part of your code we can't really reproduce it or help you. However, why don't you use just use double *MatCovExtra = REAL(PROTECT(allocMatrix(REALSXP,

Re: [Rd] R CMD build looking for texi2dvi in the wrong place (R-devel)

2015-01-12 Thread Simon Urbanek
Dan, On Jan 12, 2015, at 7:50 PM, Dan Tenenbaum dtene...@fredhutch.org wrote: R CMD build fails with recent R-devel because it is looking for texi2dvi in /usr/local/bin, but on this system, MacTex has installed it in /usr/bin. No, you're looking at the wrong package - texi2dvi comes from

Re: [Rd] Benchmark code, but avoid printing

2015-01-02 Thread Simon Urbanek
On Jan 2, 2015, at 12:02 PM, Gábor Csárdi csardi.ga...@gmail.com wrote: Dear all, I am trying to benchmark code that occasionally prints on the screen and I want to suppress the printing. Is there an idiom for this? If I do sink(tempfile) microbenchmark(...) sink() then I'll be

Re: [Rd] Help in building R with minGW

2015-01-02 Thread Simon Urbanek
Please read R-admin section 3.1 - as you'll notice it doesn't say anything about running ./configure since that's only for unix. http://r.research.att.com/man/R-admin.html#Building-from-source Cheers, Simon On Jan 2, 2015, at 12:33 PM, Edoardo Baldoni edoardo.bald...@gmail.com wrote: Dear

Re: [Rd] Making iconv portable?

2014-12-15 Thread Simon Urbanek
On Dec 15, 2014, at 12:21 PM, Kurt Hornik kurt.hor...@wu.ac.at wrote: Spencer Graves writes: Hello, All: What would it take to make “iconv” portable? I ask, because I want to convert accented characters to vanilla ASCII, thereby converting, e.g., ‘Raúl’ to

Re: [Rd] Making iconv portable?

2014-12-15 Thread Simon Urbanek
On Dec 15, 2014, at 1:37 PM, Spencer Graves spencer.gra...@prodsyse.com wrote: On Dec 15, 2014, at 10:13 AM, Simon Urbanek simon.urba...@r-project.org wrote: On Dec 15, 2014, at 12:21 PM, Kurt Hornik kurt.hor...@wu.ac.at wrote: Spencer Graves writes: Hello, All: What

Re: [Rd] Holding a large number of SEXPs in C++

2014-11-03 Thread Simon Urbanek
again, Simon Knapp CONS(newPoly, creates a new object On Sat, Oct 18, 2014 at 2:10 AM, Simon Urbanek simon.urba...@r-project.org wrote: On Oct 17, 2014, at 7:31 AM, Simon Knapp sleepingw...@gmail.com wrote: Background: I have an algorithm which produces a large number of small

Re: [Rd] Unexplicable difference between 2 R installations regarding reading numbers

2014-11-03 Thread Simon Urbanek
R version. NEWS for 3.1.0: type.convert() (and hence by default read.table() returns a character vector or factor when representing a numeric input as a double would lose accuracy. Similarly for complex inputs. NEWS for 3.1.1: type.convert(), read.table() and

Re: [Rd] Holding a large number of SEXPs in C++

2014-11-03 Thread Simon Urbanek
). What is or is not in the API can vary slightly depending on whom you ask, but the installed header files are essentially the candidate set. Cheers, Simon Thanks again for being so awesome, Simon On Tue, Nov 4, 2014 at 12:47 AM, Simon Urbanek simon.urba...@r-project.org wrote: On Nov

Re: [Rd] 'library' or 'require' call not declared from: 'rgl'

2014-10-30 Thread Simon Urbanek
On Oct 30, 2014, at 3:11 PM, Michael Friendly frien...@yorku.ca wrote: I'm checking a new release of vcdExtra via win builder with R-devel 2014-10-29 r66897 and have run into a Warning I don't know how to fix. I have one S3 generic, mosaic3d() that uses rgl and don't want to have rgl

Re: [Rd] Using a custom memory allocation function in R

2014-10-23 Thread Simon Urbanek
SO, On Oct 22, 2014, at 10:53 AM, SO User user3855...@gmail.com wrote: Heads up: I posted this question on Stackoverflow yesterday (http://stackoverflow.com/questions/26484103/using-a-custom-memory-allocation-function-in-r). So far I haven’t gotten a response and I thought this could be an

Re: [Rd] Holding a large number of SEXPs in C++

2014-10-17 Thread Simon Urbanek
On Oct 17, 2014, at 7:31 AM, Simon Knapp sleepingw...@gmail.com wrote: Background: I have an algorithm which produces a large number of small polygons (of the spatial kind) which I would like to use within R using objects from sp. I can't predict the exact number of polygons a-priori, the

Re: [Rd] [R logs] Help in develop a simply logs package

2014-10-13 Thread Simon Urbanek
On Oct 7, 2014, at 7:04 AM, DataK - B. THIEURMEL b...@datak.fr wrote: Hi, With the use of R in production, it is necessary to have a system of logs effective, and light. Package exist as to futile.logger, but it require the additional coding of logs. So it is thus impossible / very

Re: [Rd] mpi.h errors on Mavericks packages

2014-10-03 Thread Simon Urbanek
Daniel, On Oct 3, 2014, at 7:17 PM, Daniel Fuka dr...@cornell.edu wrote: Dear mac folks, I have started porting a large legacy toolset maintained in windows and heavily mpi laden so it can be used across platforms in R... so I am building a package out of it. On this note, I am noticing

Re: [Rd] Shallow copies

2014-10-01 Thread Simon Urbanek
On Sep 30, 2014, at 5:20 PM, Matthieu Gomez gomez.matth...@gmail.com wrote: I have a question about shallow copies in R. Since R 3.1.0, subsetting a dataframe with respect to its columns no longer result in deep copies. This is an amazing change in my opinion. Now, subsetting a data.frame

Re: [Rd] Can't Find Function After requireNamespace

2014-09-17 Thread Simon Urbanek
On Sep 17, 2014, at 10:00 PM, Dario Strbenac dstr7...@uni.sydney.edu.au wrote: I have a simple function : f - function() { if(requireNamespace(ggplot2)) qplot(Sepal.Length, Petal.Length, data = iris, color = Species) else message(No graphics, just text.) } ggplot2 is in the

Re: [Rd] Can't Find Function After requireNamespace

2014-09-17 Thread Simon Urbanek
BTW: you probably also want to use requireNamespace(..., quietly=TRUE) otherwise if sort of defeats the purpose ... On Sep 17, 2014, at 10:46 PM, Simon Urbanek simon.urba...@r-project.org wrote: On Sep 17, 2014, at 10:00 PM, Dario Strbenac dstr7...@uni.sydney.edu.au wrote: I have

Re: [Rd] Re R CMD check checking in development version of R

2014-08-28 Thread Simon Urbanek
On Aug 27, 2014, at 6:01 PM, Gavin Simpson ucfa...@gmail.com wrote: On 27 August 2014 15:24, Hadley Wickham h.wick...@gmail.com wrote: Is that the cause of these NOTEs? Is the expectation that if I am using a function from a package, even a package that I have in Depends:, that I have to

Re: [Rd] working with huge memory: single precision?

2014-08-27 Thread Simon Urbanek
Mario, On Aug 27, 2014, at 4:03 AM, Mario Emmenlauer ma...@emmenlauer.de wrote: Hello, I'm very new to R and don't know much about it yet. I would like to develop R-programs that work with data of sizes of 10^10 - 10^11 data points. We have very-high-memory machines with ~256 GB, but it

Re: [Rd] R, OSX, should creating SVGs request XQuartz

2014-08-27 Thread Simon Urbanek
On Aug 27, 2014, at 5:45 AM, Jonathon Love j...@thon.cc wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 hi, on OS X, when you try and use something which depends on X11, and you don't have XQuartz installed, you receive an error message, it directs you to download XQuartz, and

Re: [Rd] Why R-project source code is not on Github

2014-08-24 Thread Simon Urbanek
On Aug 24, 2014, at 2:22 PM, Spencer Graves spencer.gra...@structuremonitoring.com wrote: On 8/24/2014 10:24 AM, Jeroen Ooms wrote: On Sun, Aug 24, 2014 at 1:10 PM, Gaurav Sehrawat igauravsehra...@gmail.com wrote: But never mind . Sooner or later. These things take time, but a lot has

Re: [Rd] Why R-project source code is not on Github

2014-08-21 Thread Simon Urbanek
On Aug 21, 2014, at 6:40 AM, Marc Schwartz marc_schwa...@me.com wrote: On Aug 21, 2014, at 3:11 AM, Gaurav Sehrawat igauravsehra...@gmail.com wrote: R-Project is missing something important in regards to its development , one simply can't ignore Github ,where collaboration is at it's best

Re: [Rd] Error when assigning value in environment which is a locked binding

2014-08-11 Thread Simon Urbanek
On Aug 10, 2014, at 10:07 PM, Winston Chang winstoncha...@gmail.com wrote: Another oddity - even though there's an error thrown in assignment to x$y$z, the assignment succeeds. x - new.env() x$y - new.env() lockEnvironment(x, bindings = TRUE) x$y$z - 1 # Error in x$y$z - 1 : cannot

Re: [Rd] R-3.1.1 - R CMD INSTALL problem

2014-07-25 Thread Simon Urbanek
Eduardo, On Jul 24, 2014, at 8:37 PM, Eduardo M. A. M.Mendes emammen...@gmail.com wrote: Hello I have recently upgraded R to the newest version. Unfortunately my old (fortran and C) R-package cannot be installed anymore (was built before R 3.0.0: please re-install it). I have tried

Re: [Rd] [R-SIG-Mac] R-3.1.1 - R CMD INSTALL problem

2014-07-25 Thread Simon Urbanek
-244-6678Urbana, IL 61801 On Jul 25, 2014, at 8:14 AM, Simon Urbanek simon.urba...@r-project.org wrote: Eduardo, On Jul 24, 2014, at 8:37 PM, Eduardo M. A. M.Mendes emammen...@gmail.com wrote: Hello I have recently upgraded R to the newest version. Unfortunately

Re: [Rd] Need help on calling Head from C

2014-06-26 Thread Simon Urbanek
On Jun 25, 2014, at 11:31 PM, Sandip Nandi sanna...@umail.iu.edu wrote: Hi , I am trying to call head function from C . My doubt is with the parameter n,how to pass it . PROTECT(dfm=lang3(install(data.frame),df,ScalarLogical(FALSE))); SET_TAG(CDDR(dfm), install(stringsAsFactors)) ; SEXP

Re: [Rd] using C code to create data frame but always return as list

2014-06-24 Thread Simon Urbanek
On Jun 24, 2014, at 9:21 AM, Romain Francois rom...@r-enthusiasts.com wrote: Hi, Can you give us what str on the returned object gives you? I think you need : SET_OBJECT(and, 1) ; at the end. SET_OBJECT should not be used by user code in normal circumstances, it is set by R

Re: [Rd] what is the current correct repos structure for mac osx binaries?

2014-06-16 Thread Simon Urbanek
repositories. Cheers, Simon thanks again for your help, -skye On 06/13/2014 05:22 PM, Simon Urbanek wrote: On Jun 13, 2014, at 5:41 PM, Skye Bender-deMoll skyeb...@skyeome.net wrote: Dear R-developers, As part of our package building process, we maintain internal CRAN-like

Re: [Rd] what is the current correct repos structure for mac osx binaries?

2014-06-13 Thread Simon Urbanek
On Jun 13, 2014, at 5:41 PM, Skye Bender-deMoll skyeb...@skyeome.net wrote: Dear R-developers, As part of our package building process, we maintain internal CRAN-like repositories of our packages. This has worked pretty well, but we are running into issues with R 3.1 and OSX mavericks.

Re: [Rd] Package impute on CRAN OSX Mavericks check machine

2014-06-10 Thread Simon Urbanek
On Jun 10, 2014, at 3:30 PM, Peter Langfelder peter.langfel...@gmail.com wrote: Hello, would it be possible to install the Bioconductor package impute on the machine that checks and builds binary packages for OSX 10.9 Mavericks? Sure, done. Cheers, Simon

Re: [Rd] mcmapply Core Usage

2014-05-29 Thread Simon Urbanek
Dario, yes, that is a bug, now fixed. Cheers, Simon On May 29, 2014, at 2:00 AM, Dario Strbenac dstr7...@uni.sydney.edu.au wrote: Hello, I have a minimal example that shows a problem I'm having with parallel processing. library(parallel) mcmapply(function(x, y) { print(Running)

Re: [Rd] mcmapply Core Usage

2014-05-29 Thread Simon Urbanek
On May 29, 2014, at 8:04 PM, Henric Winell nilsson.hen...@gmail.com wrote: Simon Urbanek skrev 2014-05-29 15:06: Dario, yes, that is a bug, now fixed. Thanks for fixing it. This problem was independently reported some time ago (https://bugs.r-project.org/bugzilla/show_bug.cgi?id

Re: [Rd] Excluding objects from save.image

2014-05-22 Thread Simon Urbanek
Tim, On May 21, 2014, at 9:54 PM, Tim Keitt tke...@utexas.edu wrote: When dealing with object holding pointers that are only valid during a single session, it would be convenient to exclude them from being saved with the session image. (I am assuming that `quit` calls `save.image` before

Re: [Rd] Excluding objects from save.image

2014-05-22 Thread Simon Urbanek
On May 22, 2014, at 11:33 AM, Tim Keitt tke...@utexas.edu wrote: On Thu, May 22, 2014 at 9:19 AM, Simon Urbanek simon.urba...@r-project.org wrote: Tim, On May 21, 2014, at 9:54 PM, Tim Keitt tke...@utexas.edu wrote: When dealing with object holding pointers that are only valid during

Re: [Rd] issue with parallel package

2014-05-21 Thread Simon Urbanek
On May 21, 2014, at 1:47 PM, Jeroen Ooms jeroen.o...@stat.ucla.edu wrote: On Wed, May 21, 2014 at 10:17 AM, Josef Leydold josef.leyd...@wu.ac.at wrote: I ran into an issue with the parallel package in R-3.1.0. I have been experiencing a very similar issue within the RAppArmor package.

Re: [Rd] issue with parallel package

2014-05-21 Thread Simon Urbanek
On May 21, 2014, at 1:17 PM, Josef Leydold josef.leyd...@wu.ac.at wrote: Dear maintainers of the parallel package, I ran into an issue with the parallel package in R-3.1.0. The following code prints the message NULL! quite a lot. library(parallel) for (n in 1:1000) { p -

Re: [Rd] environment question

2014-05-17 Thread Simon Urbanek
On May 17, 2014, at 7:26 PM, Mick Jordan mick.jor...@oracle.com wrote: On 5/17/14, 4:00 PM, peter dalgaard wrote: On 17 May 2014, at 19:42 , Mick Jordan mick.jor...@oracle.com wrote: According to :https://stat.ethz.ch/R-manual/R-devel/library/base/html/environment.html If |fun| is a

Re: [Rd] large integer values

2014-05-14 Thread Simon Urbanek
On May 14, 2014, at 8:41 AM, Adrian Dușa dusa.adr...@unibuc.ro wrote: Dear Prof. Ripley, Once again, thank you for your replies. I must confess not being a genuine C programmer, having learned how to use C only in connection to R (and the macros provided are almost a separate language to

Re: [Rd] precedence (was 'historical NA question')

2014-05-07 Thread Simon Urbanek
On May 7, 2014, at 3:37 PM, Hervé Pagès hpa...@fhcrc.org wrote: No big deal. These things can be tricky: https://stat.ethz.ch/pipermail/r-devel/2006-January/036022.html Sorry I couldn't resist ;-) Yeah, but that's just yet another trip down the rabbit hole - why is -2 parsed as `-`(2)

Re: [Rd] precedence (was 'historical NA question')

2014-05-07 Thread Simon Urbanek
On May 7, 2014, at 5:17 PM, Hervé Pagès hpa...@fhcrc.org wrote: On 05/07/2014 12:52 PM, Simon Urbanek wrote: On May 7, 2014, at 3:37 PM, Hervé Pagès hpa...@fhcrc.org wrote: No big deal. These things can be tricky: https://stat.ethz.ch/pipermail/r-devel/2006-January/036022.html Sorry I

Re: [Rd] precedence (was 'historical NA question')

2014-05-07 Thread Simon Urbanek
On May 7, 2014, at 5:41 PM, Hervé Pagès hpa...@fhcrc.org wrote: On 05/07/2014 02:01 PM, peter dalgaard wrote: On 07 May 2014, at 21:52 , Simon Urbanek simon.urba...@r-project.org wrote: On May 7, 2014, at 3:37 PM, Hervé Pagès hpa...@fhcrc.org wrote: No big deal. These things can

Re: [Rd] C API for parse error

2014-04-29 Thread Simon Urbanek
On Apr 29, 2014, at 6:39 AM, JaiReddy avula.jayakris...@gmail.com wrote: May I know if we have any C api(or any other way) in retrieving the parse error message after calling R_ParseVector? R_ParseErrorMsg But AFAICS it's not part of the API, so beware (although it's not hidden). By now I

Re: [Rd] palette() can hang and fail due to X11

2014-04-24 Thread Simon Urbanek
Andrew, palette is a property recorded in the graphics device* and therefore R will create a new device (see dev.new()) if only the null device is open. Which device is really up to your settings, so you could adjust your preferred device depending on what you want it to be. The bottom line

Re: [Rd] The regular expressions in compareVersion()

2014-04-24 Thread Simon Urbanek
FWIW the link has a long thread that is 90% irrelevant - AFAICS the relevant part is From: Yihui Xie-2 Sep 02, 2013; 4:11pm Re: Sweave: printing an underscore in the output from an R command [...] Now you are good at the regular expression level, but Sweave comes and bites you, and that is due

Re: [Rd] read.table() code fails outside of the utils package

2014-04-21 Thread Simon Urbanek
Andrew, On Apr 21, 2014, at 11:53 AM, Andrew Piskorski a...@piskorski.com wrote: One of the great things about R is how readable and re-usable much of its own implementation is. If an R function doesn't do quite what you want but is close, it is usually very easy to read its code and start

Re: [Rd] type.convert and doubles

2014-04-19 Thread Simon Urbanek
On Apr 19, 2014, at 9:00 AM, Martin Maechler maech...@stat.math.ethz.ch wrote: McGehee, Robert robert.mcge...@geodecapital.com on Thu, 17 Apr 2014 19:15:47 -0400 writes: This is all application specific and sort of beyond the scope of type.convert(), which now behaves as it has been

Re: [Rd] Why did R 3.0's resolveNativeRoutine remove full-search ability?

2014-04-18 Thread Simon Urbanek
Andrew, On Apr 18, 2014, at 9:55 AM, Andrew Piskorski a...@piskorski.com wrote: In versions of R prior to 3.0, by default .C and .Call would find the requested C function regardless of which shared library it was located in. You could use the PACKAGE argument to restrict the search to a

Re: [Rd] R-3.1.0 OSX Snow Leopard installs old binary

2014-04-17 Thread Simon Urbanek
On Apr 17, 2014, at 9:30 AM, Gábor Csárdi csardi.ga...@gmail.com wrote: Hi All, I am not sure why this happens, but apparently an old binary is installed by default. Downloading and installing the new binary by hand works fine. I think you may be misinterpreting - the is no binary for

Re: [Rd] R-3.1.0 OSX Snow Leopard installs old binary

2014-04-17 Thread Simon Urbanek
On Apr 17, 2014, at 6:31 PM, Gábor Csárdi csardi.ga...@gmail.com wrote: On Thu, Apr 17, 2014 at 5:18 PM, Simon Urbanek simon.urba...@r-project.org wrote: On Apr 17, 2014, at 9:30 AM, Gábor Csárdi csardi.ga...@gmail.com wrote: Hi All, I am not sure why this happens, but apparently an old

Re: [Rd] R-3.1.0 OSX Snow Leopard installs old binary

2014-04-17 Thread Simon Urbanek
On Apr 17, 2014, at 7:42 PM, Gábor Csárdi csardi.ga...@gmail.com wrote: On Thu, Apr 17, 2014 at 5:18 PM, Simon Urbanek simon.urba...@r-project.org wrote: On Apr 17, 2014, at 9:30 AM, Gábor Csárdi csardi.ga...@gmail.com wrote: Hi All, I am not sure why this happens, but apparently

Re: [Rd] R-3.1.0 OSX Snow Leopard installs old binary

2014-04-17 Thread Simon Urbanek
On Apr 17, 2014, at 9:24 PM, Gábor Csárdi csardi.ga...@gmail.com wrote: On Thu, Apr 17, 2014 at 9:07 PM, Simon Urbanek simon.urba...@r-project.org wrote: [...] No, the issue is that igraph suggests graph yet fails when it's not present. It should guard against failure is case it's

Re: [Rd] R-3.1.0 OSX Snow Leopard installs old binary

2014-04-17 Thread Simon Urbanek
On Apr 17, 2014, at 9:52 PM, Gábor Csárdi csardi.ga...@gmail.com wrote: On Thu, Apr 17, 2014 at 9:43 PM, Simon Urbanek simon.urba...@r-project.org wrote: [...] The Suggests failure has nothing to do with BioC. Only packages listed in Depends/Imports are required for a package to work so

Re: [Rd] R-3.1.0 OSX Snow Leopard installs old binary

2014-04-17 Thread Simon Urbanek
On Apr 17, 2014, at 10:14 PM, Gábor Csárdi csardi.ga...@gmail.com wrote: On Thu, Apr 17, 2014 at 10:08 PM, Simon Urbanek simon.urba...@r-project.org wrote: [...] So this effectively means that if I Import/Depend/Suggest etc. a BioC package in igraph, then igraph will likely

Re: [Rd] R-3.1.0 OSX Snow Leopard installs old binary

2014-04-17 Thread Simon Urbanek
On Apr 17, 2014, at 10:37 PM, Gábor Csárdi csardi.ga...@gmail.com wrote: On Thu, Apr 17, 2014 at 10:24 PM, Simon Urbanek simon.urba...@r-project.org wrote: [...] :) Let's try to make this simple. What can I do to make igraph available for OSX users? I guess this is clear, I can make all

Re: [Rd] R 3.0.3 for OSX

2014-04-16 Thread Simon Urbanek
On Apr 16, 2014, at 1:55 PM, Gábor Csárdi csardi.ga...@gmail.com wrote: The R-3.0.3 pkg is missing from here: http://cran.r-project.org/bin/macosx/old/ Is this intended? No - now fixed. Anyone knows where to get it? http://cran.r-project.org/bin/macosx/R-3.0.3.pkg Cheers, Simon

Re: [Rd] R 3.0.3 for OSX

2014-04-16 Thread Simon Urbanek
On Apr 16, 2014, at 3:00 PM, Gábor Csárdi csardi.ga...@gmail.com wrote: On Wed, Apr 16, 2014 at 2:39 PM, Simon Urbanek simon.urba...@r-project.org wrote: On Apr 16, 2014, at 1:55 PM, Gábor Csárdi csardi.ga...@gmail.com wrote: The R-3.0.3 pkg is missing from here: http://cran.r

Re: [Rd] Is it possible to shrink an R object in place?

2014-04-11 Thread Simon Urbanek
Kevin, Kevin, On Apr 10, 2014, at 4:57 PM, Kevin Ushey kevinus...@gmail.com wrote: Suppose I generate an integer vector with e.g. SEXP iv = PROTECT(allocVector(INTSXP, 100)); and later want to shrink the object, e.g. shrink(iv, 50); would simply re-set the length to 50, and

Re: [Rd] type.convert and doubles

2014-04-11 Thread Simon Urbanek
Greg, On Apr 11, 2014, at 11:50 AM, Gregory R. Warnes g...@warnes.net wrote: Hi All, I see this in the NEWS for R 3.1.0: type.convert() (and hence by default read.table()) returns a character vector or factor when representing a numeric input as a double would lose accuracy.

Re: [Rd] Is it possible to shrink an R object in place?

2014-04-11 Thread Simon Urbanek
of that to come in next versions of Rcpp11. Romain Le 11 avr. 2014 à 17:08, Simon Urbanek simon.urba...@r-project.org a écrit : Kevin, Kevin, On Apr 10, 2014, at 4:57 PM, Kevin Ushey kevinus...@gmail.com wrote: Suppose I generate an integer vector with e.g. SEXP iv = PROTECT(allocVector

Re: [Rd] Error: C stack usage is too close to the limit

2014-03-29 Thread Simon Urbanek
On Mar 29, 2014, at 4:12 AM, Randy Lai randy.cs@gmail.com wrote: I have similar experience previously. What I done was disabling stack limit checking R_CStackLimit = -1; and increasing the stack size to .16*1024*1024. Hope it helps. Well, it will result in R crashing

Re: [Rd] R-devel 3.2.0 MAC OS

2014-03-17 Thread Simon Urbanek
On Mar 17, 2014, at 1:17 PM, Axel Urbiz axel.ur...@gmail.com wrote: Hello, I'm trying to build a package to submit to CRAN using R-devel 3.2.0 MAC OS from http://r.research.att.com/. As my package has dependencies, where should I get the contributed packages for this R-devel version? I

Re: [Rd] Detect a terminated pipe

2014-03-14 Thread Simon Urbanek
On Mar 14, 2014, at 8:09 AM, Kirill Müller kirill.muel...@ivt.baug.ethz.ch wrote: Hi Is there a way to detect that the process that corresponds to a pipe has ended? On my system (Ubuntu 13.04), I see p - pipe(true, w); Sys.sleep(1); system(ps -elf | grep true | grep -v grep);

Re: [Rd] Detect a terminated pipe

2014-03-14 Thread Simon Urbanek
On Mar 14, 2014, at 11:03 AM, Kirill Müller kirill.muel...@ivt.baug.ethz.ch wrote: On 03/14/2014 03:54 PM, Simon Urbanek wrote: As far as R is concerned, the connection is open. In addition, pipes exist even without the process - you can close one end of a pipe and it will still exist

Re: [Rd] 2 versions of same library loaded

2014-03-12 Thread Simon Urbanek
Ross, On Mar 12, 2014, at 5:34 PM, Ross Boylan r...@biostat.ucsf.edu wrote: Can anyone help me understand how I got 2 versions of the same library loaded, how to prevent it, and what the consequences are? Running under Debian GNU/Linux squeeze. lsof and /proc/xxx/map both show 2 copies of

Re: [Rd] A question about multiple(?) out of order ReleaseObject

2014-03-06 Thread Simon Urbanek
On Mar 6, 2014, at 5:32 PM, Saptarshi Guha saptarshi.g...@gmail.com wrote: Hello, This is a question that probably reveals my lack of understanding. In a C function (call it cfunc), i created a SEXP, called S, and then called R_PreserveObject on S. I returned the SEXP to the calling R

Re: [Rd] internal copying in R (soon to be released R-3.1.0

2014-03-03 Thread Simon Urbanek
On Mar 2, 2014, at 12:37 PM, Jens Oehlschlägel jens.oehlschlae...@truecluster.com wrote: Dear core group, Which operation in R guarantees to get a true copy of an atomic vector, not just a second symbol pointing to the same shared memory? None, there is no concept of shared memory at R

Re: [Rd] Admin manual bug: packages installed on OS X

2014-03-03 Thread Simon Urbanek
Thanks, fixed, Simon On Mar 3, 2014, at 2:09 PM, Davor Cubranic cubra...@stat.ubc.ca wrote: The administration manual for the current release of R says in section 4.2, Uninstalling under OS X: The installation consisted of three Apple packages: org.r-project.R.Leopard.fw.pkg,

Re: [Rd] internal copying in R (soon to be released R-3.1.0

2014-03-03 Thread Simon Urbanek
Jens, On Mar 3, 2014, at 3:35 PM, Jens Oehlschlägel jens.oehlschlae...@truecluster.com wrote: Thanks for answering Simon, None, there is no concept of shared memory at R level. You seem to be mixing C level API specifics and the R language. In the former duplicate() creates a new

Re: [Rd] reference classes, LAZY_DUPLICATE_OK, and external pointers

2014-03-02 Thread Simon Urbanek
Ben, On Mar 2, 2014, at 7:38 PM, Ben Bolker bbol...@gmail.com wrote: We (the lme4 authors) are having a problem with doing a proper deep copy of a reference class object in recent versions of R-devel with the LAZY_DUPLICATE_OK flag in src/main/bind.c enabled. Apologies in advance for any

Re: [Rd] $new cannot be accessed when running from Rscript and methods package is not loaded

2014-02-11 Thread Simon Urbanek
On Feb 11, 2014, at 1:28 PM, Martin Morgan mtmor...@fhcrc.org wrote: On 02/11/2014 09:06 AM, Winston Chang wrote: To state the issue that Kirill raised in a different way... A package with S4 or reference classes and Depends:methods can throw an error when you do something as simple as this:

Re: [Rd] Redefining .Call

2014-02-08 Thread Simon Urbanek
Gábor, On Feb 8, 2014, at 10:19 AM, Gábor Csárdi csardi.ga...@gmail.com wrote: Hi All, is there a caveat in redefining .Call in a package? (Apart from the performance hit of the extra function call.) Why don't you just do s/\.Call/myCall/g in R/* instead? That would be a bit less

Re: [Rd] How to set user read request while R install

2014-02-07 Thread Simon Urbanek
Sandip, this has nothing to do with R but rather your restrictive umask setting. If you want others to have rx permissions, change your umask to something like 0022 which is more commonly used (please see unix documentation on the concepts involved). Cheers, Simon On Feb 7, 2014, at 1:15

Re: [Rd] String Vector Encoding

2014-02-03 Thread Simon Urbanek
On Feb 3, 2014, at 10:06 AM, Saptarshi Guha saptarshi.g...@gmail.com wrote: True but I was hoping someone could point me where in the source code this happens. src/main/serialize.c @1655 and @1663 Cheers Saptarshi On Feb 3, 2014 3:37 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote:

Re: [Rd] [R-SIG-Mac] My first package

2014-01-20 Thread Simon Urbanek
On Jan 20, 2014, at 4:31 AM, Federico Calboli f.calb...@imperial.ac.uk wrote: On 18 Jan 2014, at 14:31, Axel Urbiz axel.ur...@gmail.com wrote: Hi All, I'm planning to submit my first package to R, and although I read all the documentation, I'm not very clear on the following 2 items,

Re: [Rd] My first package

2014-01-18 Thread Simon Urbanek
On Jan 18, 2014, at 9:31 AM, Axel Urbiz axel.ur...@gmail.com wrote: Hi All, I'm planning to submit my first package to R, and although I read all the documentation, I'm not very clear on the following 2 items, from which I'd appreciate your guidance: 1)I understand it is suggested

Re: [Rd] reference class internals

2014-01-09 Thread Simon Urbanek
On Jan 9, 2014, at 6:20 PM, Norm Matloff matl...@cs.ucdavis.edu wrote: Bottom line: Really no different from the case of ordinary vectors that are not in reference classes, right? In other words, not true pass-by-reference. The pass-by-reference applies to the object itself, not

Re: [Rd] RHS of assignment is evaluated eagerly?

2013-12-26 Thread Simon Urbanek
On Dec 26, 2013, at 10:26 PM, Peter Meilstrup peter.meilst...@gmail.com wrote: Is this expected behavior, and if so, why? I would have expected neither 'arg' nor 'value' to evaluate until forced. `test-` - function(obj, arg, value) { 1 #force no args } x - 1 test(x, print(evaled arg)) -

Re: [Rd] Strategies for keeping autogenerated .Rd files out of a Git tree

2013-12-13 Thread Simon Urbanek
FWIW this is essentially what RForge.net provides. Each GitHub commit triggers a build (branches are supported as the branch info is passed in the WebHook) which can be either classic R CMD build or a custom shell script (hence you can do anything you want). The result is a tar ball (which

Re: [Rd] internal manipulation of ...

2013-12-12 Thread Simon Urbanek
On Dec 12, 2013, at 3:32 PM, Romain François rom...@r-enthusiasts.com wrote: Hello, I’m looking for examples on how to manipulate the ... internally, e.g. in a .Call or .External function. I’m particularly interested in accessing the environment in which each contribution to ... can

Re: [Rd] inflate zlib compressed data using base R or CRAN package?

2013-11-29 Thread Simon Urbanek
On Nov 29, 2013, at 4:37 AM, Henrik Bengtsson h...@biostat.ucsf.edu wrote: On Thu, Nov 28, 2013 at 4:48 PM, Simon Urbanek simon.urba...@r-project.org wrote: On Nov 27, 2013, at 8:30 PM, Murray Stokely mur...@stokely.org wrote: I think none of these examples describe a zlib compressed data

Re: [Rd] inflate zlib compressed data using base R or CRAN package?

2013-11-28 Thread Simon Urbanek
On Nov 27, 2013, at 8:30 PM, Murray Stokely mur...@stokely.org wrote: I think none of these examples describe a zlib compressed data block inside a binary file that the OP asked about, as all of your examples are e.g. prepending gzip or zip headers. Greg, is memDecompress what you are

Re: [Rd] Checking packages with address sanitizer

2013-11-27 Thread Simon Urbanek
On Nov 27, 2013, at 12:36 PM, wokai wolfgang.kais...@gmail.com wrote: I was recently challenged to correct my package source (rbamtools) because there were issues reported by address sanitizer. Therefore the problem of installing and running instrumented (R +) package code arises.

Re: [Rd] serialization for external pointers

2013-11-16 Thread Simon Urbanek
On Nov 16, 2013, at 8:30 AM, Romain Francois rom...@r-enthusiasts.com wrote: Hello, Are there any recipe to handle serialization / deserialization of external pointers. I'm thinking about something similar in spirit to the way we handle finalization of external pointers. See refhook

Re: [Rd] cat with backspace and newline characters

2013-11-06 Thread Simon Urbanek
On Nov 6, 2013, at 3:47 AM, Renaud Gaujoux ren...@mancala.cbio.uct.ac.za wrote: Anyway, thanks for all the experiments, and (to Renaud) support.rstudio.org is the place to report such problems. Funny how the post diverged to an RStudio-related issue. Anyway, I posted a link to this

Re: [Rd] R CMD check problem with R 3.0.2

2013-10-26 Thread Simon Urbanek
On Oct 25, 2013, at 12:12 PM, Yihui Xie wrote: This has been asked s many times that I think it may be a good idea for R CMD check to just stop when the user passes a directory instead of a tar ball to it, or automatically run R CMD build before moving on. In my opinion, sometimes an FAQ

Re: [Rd] png(type='cairo'): point symbols without boarders are not anti-aliased?

2013-10-22 Thread Simon Urbanek
On Oct 21, 2013, at 9:07 PM, Yihui Xie wrote: Perhaps yes. Sorry I did not check the bug reports. Can someone elaborate on the undesirable artefacts? I made two heatmaps using png() and CairoPNG(), respectively. I can see the difference, but it is not very clear to me what the artefacts are,

Re: [Rd] Parallel R expression evaluations

2013-10-20 Thread Simon Urbanek
Jai, On Oct 19, 2013, at 1:37 AM, JaiReddy wrote: Thanks Simon. May I know how R works if two expressions come at the same time for evaluation. When I debug my case I found that issue was found with indexed values of protected items. As R is single threaded engine, I just want to know

Re: [Rd] Subversion log no longer being updated daily

2013-10-20 Thread Simon Urbanek
On Oct 20, 2013, at 2:00 AM, Berend Hasselman wrote: The subversion log for 2013 (http://developer.r-project.org/R_svnlog_2013) on the R developer page hasn't been updated since September 29. I would appreciate the daily updates returning. Sorry, my bad, with all the server switching I

<    1   2   3   4   5   6   7   8   9   10   >