Re: [Rd] Runnable R packages

2019-01-07 Thread Murray Stokely
Some other major tech companies have in the past widely use Runnable R Archives (".Rar" files), similar to Python .par files [1], and integrate them completely into the proprietary R package build system in use there. I thought there were a few systems like this that had made their way to CRAN or t

Re: [Rd] How to handle INT8 data

2017-01-20 Thread Murray Stokely
2^53 == 2^53+1 TRUE Which makes joining or grouping data sets with 64 bit identifiers problematic. Murray (mobile) On Jan 20, 2017 9:15 AM, "Nicolas Paris" wrote: Le 20 janv. 2017 à 18h09, Murray Stokely écrivait : > The lack of 64 bit integer support causes lots of problems when

Re: [Rd] How to handle INT8 data

2017-01-20 Thread Murray Stokely
The lack of 64 bit integer support causes lots of problems when dealing with certain types of data where the loss of precision from coercing to 53 bits with double is unacceptable. Two packages were developed to deal with this: int64 and bit64. You may need to find archival versions of these pac

Re: [Rd] type.convert and doubles

2014-04-20 Thread Murray Stokely
Yes, I'm also strongly in favor of having an option for this. If there was an option in base R for controlling this we would just use that and get rid of the separate RProtoBuf.int64AsString option we use in the RProtoBuf package on CRAN to control whether 64-bit int types from C++ are returned to

Re: [Rd] type.convert and doubles

2014-04-17 Thread Murray Stokely
On Thu, Apr 17, 2014 at 2:35 PM, Gabor Grothendieck wrote: > Only if you knew that that column was supposed to be numeric. There is The columns that are "supposed" to be numeric are those that can fit into a numeric data type. Previously that was not always the case with columns that could not b

Re: [Rd] type.convert and doubles

2014-04-17 Thread Murray Stokely
On Thu, Apr 17, 2014 at 6:42 AM, McGehee, Robert wrote: > Here's my use case: I have a function that pulls arbitrary financial data > from a web service call such as a stock's industry, price, volume, etc. by > reading the web output as a text table. The data may be either character > (industry

Re: [Rd] C API to get numrow of data frame

2014-03-31 Thread Murray Stokely
ta frame has zero columns. (FIXME, of course.) > > Gabor > > > On Mon, Mar 31, 2014 at 8:04 PM, Murray Stokely wrote: >> >> The simplest case would be: >> >>int num_rows = Rf_length(VECTOR_ELT(dataframe, 0)); >>int num_columns = Rf_length(datafr

Re: [Rd] C API to get numrow of data frame

2014-03-31 Thread Murray Stokely
The simplest case would be: int num_rows = Rf_length(VECTOR_ELT(dataframe, 0)); int num_columns = Rf_length(dataframe); There may be edge cases for which this doesn't work; would need to look into how the dim primitive is implemented to be sure. - Murray On Mon, Mar 31, 20

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

2013-11-27 Thread Murray Stokely
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 looking for? - Murray On Wed, Nov 27, 2013 at 5:22 PM, Dirk Eddelbue

Re: [Rd] Determining files opened by an R session

2013-11-04 Thread Murray Stokely
Most operating systems have tools which allow you to audit the resources used by a running process, for example the 'lsof' (list open files) command on Unix and MacOS X. Or, for more complex dynamic tracing, the DTrace framework again on MacOS X or BSD Unix. Not sure what the Windows equivalent w

Re: [Rd] regenerate Rscript after moving R installation

2013-09-23 Thread Murray Stokely
Simon, do you have some examples of packages with this attribute? Removing the hard-coding of paths in base R and Rscript is one of the many local patches we've maintained in the R I use at my workplace since at least the R 2.5 days. We do this to enable us to send R and all its dependencies off

Re: [Rd] r-devel fails tests for parallel

2012-05-17 Thread Murray Stokely
On Thu, May 17, 2012 at 8:09 AM, Prof Brian Ripley wrote: > This is getting increasingly difficult.  GCC 4.6.x and 4.7.x detect a lot of > errors (especially C++ errors) that earlier versions did not -- and that > means CRAN gets a fair number of submissions that we cannot compile.  And > there ha

Re: [Rd] R-devel on FreeBSD: new C99 functions don't build

2012-05-15 Thread Murray Stokely
On Tue, May 15, 2012 at 10:05 AM, Rainer Hurling wrote: > About April 25th, there had been some changes within R-devel's > src/nmath/pnbeta.c (and probably some other relevant places) and now > building R-devel on FreeBSD 10.0-CURRENT (amd64) with gcc-4.6.4 and > math/R-devel (selfmade forked port

Re: [Rd] CRAN policies

2012-03-27 Thread Murray Stokely
Lots of very sensible policies here. I have one request as someone who has in several cases had to involve company lawyers over intellectual property issues with packages on CRAN -- the first bullet point on ownership of copyright and intellectual property rights could be strengthened further. To

Re: [Rd] bug in sum() on integer vector

2011-12-13 Thread Murray Stokely
FYI, the new int64 package on CRAN gets this right, but is of course somewhat slower since it is not doing hardware 64-bit arithmetic.  x <- c(rep(180003L, 1000), -rep(120002L, 1500)) library(int64) sum(as.int64(x)) # [1] 0 - Murray 2011/12/9 Hervé Pagès : > Hi, >

[Rd] Signal handling / alarm timeouts

2011-04-12 Thread Murray Stokely
What are the ramifications of setting up user signal handling to allow the use of e.g. alarm(2) to send a SIGALRM to the R process at some number of seconds in the future to e.g. interrupt a routine that is taking too long to complete. I can't find any R language support for this (e.g. a timeout a

Re: [Rd] R-devel on FreeBSD: Support for C99 complex type is required

2011-02-06 Thread Murray Stokely
On Sun, Feb 6, 2011 at 9:24 AM, Murray Stokely wrote: > Yes, please mail freebsd-standa...@google.com Ugh, that should be freebsd-standa...@freebsd.org of course. Silly brain-o. - Murray __ R-devel@r-project.org mailing list ht

Re: [Rd] R-devel on FreeBSD: Support for C99 complex type is required

2011-02-06 Thread Murray Stokely
On Sun, Feb 6, 2011 at 8:50 AM, Rainer Hurling wrote: >> I think this is really a FreeBSD support question. In 2011, an OS really >> should have support for a 1999 standard. Darwin, a FreeBSD derivative, >> does and its help page says > > Hmm, on FreeBSD I really have no other piece of software wh

Re: [Rd] R in sandbox/jail (long question)

2010-05-20 Thread Murray Stokely
On Tue, May 18, 2010 at 7:38 PM, Assaf Gordon wrote: > I've found this old thread: > http://r.789695.n4.nabble.com/R-in-a-sandbox-jail-td921991.html > But for technical reasons I'd prefer not to setup a chroot jail. > I would also point out that the state of the art in the operating system commun

Re: [Rd] [PATCH] R ignores PATH_MAX and fails in long directories (PR#14228)

2010-03-14 Thread Murray Stokely
Indeed thanks to ripley@ for submitting it. I don't see a note in the NEWS file and it would be nice to point this out as fixed since others may have run into this problem. Could someone submit something like this as well? Index: NEWS =