[Rd] Undesirable behaviour of base::factor

2024-05-23 Thread Andrew Gustar
This thread on stackoverflow illustrates the problem... https://stackoverflow.com/questions/78523612/r-factor-from-numeric-vector-drops-every-100-000th-element-from-its-levels The issue is that factor(), applied to numeric values, uses as.character(), which converts numbers to character strings

Re: [Rd] cwilcox - new version

2024-01-17 Thread Andrew Robbins via R-devel
he lack of scaling. I stumbled into this thread while working on some improvements for it and would like to make it known that there is absolutely an audience for the high-member use-case. Best, -Andrew Robbins On 1/17/2024 5:55 AM, Andreas Löffler wrote: Performance statistics are interest

Re: [Rd] as.character.Date() strips names in R 4.3.2 beta, bug?

2023-10-24 Thread Andrew Piskorski
planation and pointers to the old info I'd missed, Martin. The as.character.Date tip in particular was very helpful in adapting my code to work with this change. -- Andrew Piskorski __ R-devel@r-project.org mailing list https://stat.ethz.ch/mail

[Rd] as.character.Date() strips names in R 4.3.2 beta, bug?

2023-10-23 Thread Andrew Piskorski
lease DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS" $ R --vanilla R version 4.3.2 beta (2023-10-22 r85392) -- "Eye Holes" > v2 <- structure(as.Date(c('2021-10-06','2021-10-08')) ,names=c('a','b')) > v2 ab "20

Re: [Rd] need help from someone know screen reader and R high DPI GUI

2023-02-08 Thread Andrew Hart via R-devel
I'd be willing to give it a go if a pre-build binary set-up could be provided. Cheers, Andrew. On 8/02/2023 6:39, yu gong wrote: hello , everyone: I recheck and retest about the patch about high dpi of windows R GUI , IMO it works mostly. Last thing I am not sure is screen reader.

Re: [Rd] Problem with accessibility in R 4.2.0 and 4.2.1.

2022-12-21 Thread Andrew Hart via R-devel
out full cursor and see if that makes a difference in 4.2.2. Also, I'll download the development snapshot and try it out. I'll let you know how I get on. Please excuse me if I don't get to it immediately; things are a bit crazy at work at the moment and it is that time of the y

Re: [Rd] Problem with accessibility in R 4.2.0 and 4.2.1.

2022-09-22 Thread Andrew Hart via R-devel
w it display text help on Linux, but I was logged in remotely. Text-based help is fine when ssh-ing into a machine, but HTML help is much nicer to read and navigate. I think I'll just switch over to Rterm for a while, but I can also check out ess,

[Rd] Problem with accessibility in R 4.2.0 and 4.2.1.

2022-09-22 Thread Andrew Hart via R-devel
K might be the culprit. I'm hoping that someone will be able to help shed some light on what's going on here. Thanks a lot, Andrew. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Blue Sky Statistics - GPL Violation?

2022-06-27 Thread Andrew Simons
robust > library package releases. It seems to also mitigate somewhat the issue > of abandonware packages, because people are throwing some bucks into the > tip jar via enterprise support license subscriptions. > > Which reminds me that RStudio also does something similar :) > > >

Re: [Rd] R 4.1.x make check fails, stats-Ex.R, step factor reduced below minFactor

2021-10-01 Thread Andrew Piskorski
00.0300625 9.9144191 0.5023516843) 0.9906046057 (1.84e-05): par = (100.0288724 9.916224018 0.5025207336) 0.9906046054 (9.95e-08): par = (100.028875 9.916228366 0.50252165) 0.9906046054 (9.93e-08): par = (100.028875 9.916228366 0.50252165) Error in nls(formula = y ~ Const + A * exp(B * x), algorithm = "default", : step factor 0.000488281 reduced below 'minFactor' of 0.000976562 In addition: Warning message: In nls(formula = y ~ Const + A * exp(B * x), algorithm = "default", : No starting values specified for some parameters. Initializing 'Const', 'A', 'B' to '1.'. Consider specifying 'start' or using a selfStart model -- Andrew Piskorski __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] R 4.1.x make check fails, stats-Ex.R, step factor reduced below minFactor

2021-10-01 Thread Andrew Piskorski
6 0.50252165) 0.9906046054 (9.93e-08): par = (100.028875 9.916228366 0.50252165) Error in nls(formula = y ~ Const + A * exp(B * x), algorithm = "default", : step factor 0.000488281 reduced below 'minFactor' of 0.000976562 Calls: update -> update.default -> eval -> eval -> nls Execution halted ## After install, start R with --vanilla and run tests like this: ## https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Testing-a-Unix_002dalike-Installation Sys.setenv(LC_COLLATE = "C", LC_TIME = "C", LANGUAGE = "en") pdf("tests.pdf") tools::testInstalledPackages(scope="base", errorsAreFatal=FALSE) -- Andrew Piskorski __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Rprofile.site function or variable definitions break with R 4.1

2021-08-12 Thread Andrew Piskorski
ve from these). Ok, but what's the recommended way to actually USE Rprofile.site now? Should I move all my local configuration into a special package, and do nothing in Rprofile.site except require() that package? Thanks for your help and advice! -- Andrew Piskorski

Re: [Rd] Porting R example datasets to GNU Octave

2019-05-15 Thread Andrew Janke
On 5/6/19 7:47 AM, Dirk Eddelbuettel wrote: > > On 5 May 2019 at 10:47, Andrew Janke wrote: > | I'm interested in porting the R example datasets package to GNU Octave > | and Matlab. Would you have objections to my doing so? > > You don't even have to ask... > &

[Rd] Incorrect date range in austres example dataset?

2019-05-06 Thread Andrew Janke
ned in the source code. By my count, that only brings you up to about March 1993. Is there an issue with the data transcription, or the Description? I'm looking at the source code from the R 3.6.0 source distribution. Cheers, Andrew Janke __

[Rd] Porting R example datasets to GNU Octave

2019-05-06 Thread Andrew Janke
icating that R is the original source (well, intermediate source) for these datasets, and have links pointing back to R's documentation. Cheers, Andrew Janke __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] default for 'signif.stars'

2019-03-29 Thread Andrew Robinson
em of big P? I don't think we would use stars. Cheers, Andrew On Thu, 28 Mar 2019 at 20:19, Martin Maechler wrote: > >>>>> Lenth, Russell V > >>>>> on Wed, 27 Mar 2019 00:06:08 + writes: > > > Dear R-Devel, As I am sure ma

Re: [Rd] [tryExcept] New try Function

2018-11-26 Thread Andrew Redd
I have two related packages that are already submitted to CRAN but are awaiting approval. They are part of the R Documentation Task Force efforts to improve documentation. The exact function you are referring to I have called `catch_condition()` and included it in my `testextra` package. You mig

Re: [Rd] formal process for orphaning a package

2016-09-21 Thread Andrew Redd
The README states clearly that a package is orphaned under any of three conditions: 1. The Maintainer requests is. 2. The maintainer email bounces 3. The maintainer is unresponsive to requests regarding the package from CRAN maintainers But I think that it is a good idea to include th

Re: [Rd] Announcing the R Documentation Task Force

2016-09-12 Thread Andrew Redd
guaranteed to be included in R Core. My apologies to any who may have misinterpreted the intentions of the announcement. Sincerely, Andrew Redd On Fri, Sep 9, 2016 at 8:46 PM Andrew Redd wrote: > cross-posting announcement to R-Announce, R-devel and R-package-devel. > > The R Consortium

[Rd] Announcing the R Documentation Task Force

2016-09-09 Thread Andrew Redd
such as data frames, non-standard objects, packages, and how vignettes fit into the documentation framework. If you have opinions or concerns that you would like to make sure are addressed please join. To join send an email to Andrew dot Redd at hsc dot utah dot edu, expressing your interests

[Rd] What happened to Ross Ihaka's proposal for a Common Lisp based R successor?

2016-08-05 Thread Andrew Judson
I read this paper and haven't been able to find out what happened - I have seen some sporadic mention in message groups but nothing definitive. Does anyone know? [[alternative HTML version deleted]] _

[Rd] failed to assign RegisteredNativeSymbol for splitString

2016-07-18 Thread Andrew Piskorski
puts quotes around the splitString or not - I tried it, and it made no difference. Is it generally the case the users MUST NOT define R functions with the same names as "registered" C functions? Will something break if we do? -- Andrew Piskorski __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Custom C finalizers for .Call

2015-11-24 Thread Andrew Piskorski
() terminates execution. But this is a ridiculously roundabout way to infer what the behavior of Rf_error() is supposed to be... -- Andrew Piskorski __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] authorship and citation

2015-10-05 Thread Andrew Robinson
, citing the previous version appropriately, is by a single author. The page of CRAN's policies doesn't seem to touch on forking, presumably because it's out of scope. Best wishes, Andrew On Tue, Oct 6, 2015 at 8:22 AM, Uwe Ligges wrote: > Simply advice: > > The form

Re: [Rd] Please make Pre-3.1 read.csv (type.convert) behavior available

2014-04-27 Thread Andrew Piskorski
ly ignore NAs already present in the incoming data. old.warn <- options(warn = -1) ; on.exit(options(old.warn)) aa <- !is.na(as.numeric(xx)) if(ignore.na.p) (is.na(xx) | aa) else aa } -- Andrew Piskorski __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2014-04-25 Thread Andrew Piskorski
endent jobs into the single palette() command seems a bit unfortunate. Is there was some way for me to do ONLY the first of palette()'s jobs, set my session-wide default colors and that's it? It looks like there is no such entry point in the code, but the little hac

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

2014-04-24 Thread Andrew Piskorski
of R I've ever used. I am using: R 3.1.0 (Patched), 2014-04-15, svn.rev 65398, x86_64-unknown-linux-gnu Ubuntu 12.04.3 LTS Is there something else I should check to help track down the bug? -- Andrew Piskorski __ R-devel@r-project.org ma

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

2014-04-24 Thread Andrew Piskorski
ars to be "palette" in "src/library/grDevices/src/colors.c" and "do_dotcallgr" for .Call.graphics in "src/main/dotcode.c", but I don't understand what part is triggering the additional complex behavior, nor how I should avoid it. Any advice on how I should handle this robustly? (Thanks!) -- Andrew Piskorski __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2014-04-21 Thread Andrew Piskorski
On Mon, Apr 21, 2014 at 06:44:05PM +0100, Prof Brian Ripley wrote: > On 21/04/2014 18:08, Andrew Piskorski wrote: > >> .External(utils:::C_readtablehead, ...) > > > > Ah, that works fine, and is nice and simple. So problem solved, thank > > you! > > >

[Rd] how to get old type.convert() numeric behavior?

2014-04-21 Thread Andrew Piskorski
(rep(0:9,3)[seq_len(17)],collapse=""), sep=""), > as.is=TRUE) [1] 0.01234568 > type.convert(paste("0.", paste(rep(0:9,3)[seq_len(18)],collapse=""), sep=""), > as.is=TRUE) [1] 0.01234568 -- Andrew Piskorski __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2014-04-21 Thread Andrew Piskorski
problem solved, thank you! I do still wonder though, with the C symbol made visible in utils.so, how come this still failed?: .External("readtablehead", ..., PACKAGE="utils") Error: "readtablehead" not available for .E

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

2014-04-21 Thread Andrew Piskorski
interface or behavior of readtablehead necessarily be SUPPORTED in any way, just that it be callable for experimental purposes, much as the old .Internal(readTableHead()) was in earlier versions of R. -- Andrew Piskorski __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2014-04-18 Thread Andrew Piskorski
; behavior as not passing any PACKAGE argument at all. So apparently the removal of functionality was intentional. I'd like to better understand why. Why should that be an error? Or said another way, why has traditional Unix-style symbol resolution been banned from use with .C and .Call ? --

[Rd] how to interpose my own "[" function?

2013-09-29 Thread Andrew Piskorski
ot;") if (!missing(j))code <- paste(code ,'j' ,sep="") if (!missing(...)) code <- paste(code ,',...' ,sep="") if (!missing(drop)) code <- paste(code ,',drop=drop' ,sep="") code <- paste(code ,')' ,sep="") result <- eval(parse(text=code)) # FINALLY we have the stock result, now modify it some more... result } -- Andrew Piskorski __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Description depends line for windows only

2013-03-22 Thread Andrew Redd
I am developing a package that is only applicable on windows, is there a line I can put in the depends field of the DESCRIPTION file to tell that this should only be build for windows? Are there any other protocols that I should follow? Thanks, -- Andrew May the Open Source be with you

[Rd] why does do_stop call R_GetTraceback ?

2012-11-21 Thread Andrew Piskorski
(call=, format=) at ../../../src/main/errors.c:698 #16 0x7ff2880a25c2 in do_stop (call=, op=, args=0x10ecae78, rho=) at ../../../src/main/errors.c:1095 [...] #79 0x00400819 in _start () -- Andrew Piskorski __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Quiz: How to get a "named column" from a data frame

2012-08-19 Thread Andrew Piskorski
perience suggests that most R code which expects un-named objects doesn't mind at all if names are present. If anyone would genuinely like to add an option for name-preserving subscripting to R, I'm willing to work on it, so please do let me know your thoughts. So far though, I've never dug into the guts of the .Primitive("[") and "[.data.frame" functions to see how/why they sometimes keep and sometime discard names during subscripting. -- Andrew Piskorski __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Write unix format files on windows and vice versa

2012-04-24 Thread Andrew Redd
ending on windows; and CRLF line endings instead of LF on linux, and I want to be able to control when the conversion is made and/or choose the line endings that I want. As far as I can tell the conversion is not optional and buried deep in compiled code. Is there a possible work around? Thanks, Andrew

Re: [Rd] Interrupting C++ code execution

2011-04-28 Thread Andrew Runnalls
. However, it's fair to say that in using CXXR with a multi-threaded program you'll be on the bleeding edge... Andrew __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] datalist and data objects in R Package building

2011-03-28 Thread andrew stewart
on my machine. Apologies if I wasn't clear about that part. 2011/3/28 Uwe Ligges > > > On 24.03.2011 16:51, andrew stewart wrote: > >> Hello all, >> >> I have,say 4 R objects... bar1, bar2, bar3, bar4.. that I'd like to >> include >> in an R p

[Rd] datalist and data objects in R Package building

2011-03-25 Thread andrew stewart
hen trying to tab complete within data(). So my question is, what's the correct approach for what I'm trying to do here? Any advice welcome and appreciated. Thanks, Andrew [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] unloading compiled code.

2010-11-18 Thread Andrew Redd
pty environment will never be collected this will only run on exit. -Andrew On Tue, Nov 16, 2010 at 6:34 PM, Charles C. Berry wrote: > On Tue, 16 Nov 2010, Andrew Redd wrote: > >> so should I use reg.finalizer or overwrite .Last()? > >> .Last > > Error: object '.Last'

Re: [Rd] unloading compiled code.

2010-11-16 Thread Andrew Redd
don't overwrite .Last if if has another purpose. -Andrew On Tue, Nov 16, 2010 at 11:27 AM, Charles C. Berry wrote: > On Tue, 16 Nov 2010, Andrew Redd wrote: > >> Just found in the documentation for getHook that packages are not >> unloaded on quit.  How should I force a pa

Re: [Rd] unloading compiled code.

2010-11-16 Thread Andrew Redd
Just found in the documentation for getHook that packages are not unloaded on quit. How should I force a package to unload on quit? -Andrew On Tue, Nov 16, 2010 at 10:25 AM, Andrew Redd wrote: > Are packages unloaded on quit so that the .Last.lib or .onUnload are > called for pa

Re: [Rd] unloading compiled code.

2010-11-16 Thread Andrew Redd
Are packages unloaded on quit so that the .Last.lib or .onUnload are called for packages? -Andrew On Fri, Nov 12, 2010 at 3:52 PM, Andrew Redd wrote: > Perhaps you could help me make some sense of this.  Here is a printout > of my sessions. > --- > toys$R -q >> library(test

Re: [Rd] unloading compiled code.

2010-11-12 Thread Andrew Redd
the code should be unloaded. But it appears that it is not from errors when I explicitly unload the test2.so it does not through a segfault. Why would this be happening? and how do I circumvent it. thanks, Andrew On Fri, Nov 12, 2010 at 3:32 PM, Prof Brian Ripley wrote: > On Fri, 12 Nov 2010

[Rd] unloading compiled code.

2010-11-12 Thread Andrew Redd
useDynLib. Thanks, Andrew Redd __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Segmentation Fault when using CUDA

2010-11-08 Thread Andrew Redd
testgpu.log but do not show anything interesting. Can anyone give any insight? Thanks, Andrew Redd Links to files: http://andrewredd.us/gputest/testgpu.R http://andrewredd.us/gputest/testgpu.Rout http://andrewredd.us/gputest/gputest_1.0.tar.gz http://andrewredd.us/gputest/testgpu.log ___

Re: [Rd] BLAS benchmarks on R 2.12.0

2010-11-01 Thread Andrew Piskorski
at all, rather than one of the faster optimized BLAS libraries (Atlas, Goto, AMD, Intel, etc.)? -- Andrew Piskorski http://www.piskorski.com/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] must .Call C functions return SEXP?

2010-10-28 Thread Andrew Piskorski
a thorough and illuminating answer. (Now I have better understanding of how the machine works, and what the dangerous sharp bits are. :) -- Andrew Piskorski http://www.piskorski.com/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] must .Call C functions return SEXP?

2010-10-28 Thread Andrew Piskorski
y Ugly? From my reasons above, I think it will always work correctly and thus is not Broken. But of course given R's devotion to pass-by-value, it could be considered unacceptably Ugly. -- Andrew Piskorski http://www.piskorski.com/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] must .Call C functions return SEXP?

2010-10-27 Thread Andrew Piskorski
other.input) My C code looks like this: SEXP result_v; result_v = Rf_allocVector(REALSXP, 5); SET_VECTOR_ELT(result_list_1, k1, result_v); REAL(result_v)[0] = some_number; REAL(result_v)[1] = another_number; /* Also do the same sort of thing for result_list_2. */ return(resul

Re: [Rd] Adding Tcl source to an R package

2010-08-11 Thread Andrew Piskorski
e using variable names you know at the time you write the code rather than the run-time determined variable names that tclVar() gives you. However, the implementation of tclVar() is nicely simple, and if you look you'll see how to make your own version that uses whatever Tcl variable name you

Re: [Rd] Memory allocation in C/C++ vs R?

2010-05-09 Thread Andrew Runnalls
n - for as long as the pointer exists and points to that object. Let me know (offline from this list) if I can be of any help. Andrew Runnalls __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [patch] add is.set parameter to sample()

2010-03-25 Thread Andrew Clausen
It's bad enough that there is a surprise, but even worse that there is no workaround that my students can understand easily. Cheers, Andrew On 25 March 2010 06:53, Martin Maechler wrote: >>>>>> "AndrewC" == Andrew Clausen >>>>>>     on Tue, 23 M

Re: [Rd] [patch] add is.set parameter to sample()

2010-03-23 Thread Andrew Clausen
Hi all, I forgot to test my patch! I fixed a few bugs. Cheers, Andrew On 22 March 2010 22:53, Andrew Clausen wrote: > Hi all, > > sample() has some well-documented undesirable behaviour. > > sample(1:6, 1) > sample(2:6, 1) > ... > sample(5:6, 1) > > do what you

[Rd] [patch] add is.set parameter to sample()

2010-03-23 Thread Andrew Clausen
means that sample(6:6, 1, is.set=TRUE) would return 6 with probability 1. I have attached a patch to implement this new option. Cheers, Andrew diff --git a/src/library/base/R/sample.R b/src/library/base/R/sample.R index 8d22469..ddf7cf0 100644 --- a/src/library/base/R/sample.R +++ b/src/library/

[Rd] Changing the Prompt for browser()

2010-03-05 Thread Andrew Redd
not a valid option for browser, but it would be nice if it were. There is an option('prompt") but that does not affect the prompt for browser. Can I change this and how? Thanks, Andrew [[alternative HTML version deleted]] __ R-devel@

[Rd] Installing and compiling C code for R-windows

2009-11-10 Thread Hartley, Andrew
Hi r-devers, This is the first time I've tried to install a package from source on Windows, so please bear with me. I'm trying to install a package written (and tested) by a colleague in C for R on linux, and I am trying to install it on windows following the directions here - http://cran.r-proje

[Rd] R's --enable-threads does nothing?; gdb needs -lpthread

2009-10-05 Thread Andrew Piskorski
what to do when my *.so suddenly brings in the thread stuff. Since I can't stop using -lpthread in my library, the obvious fix is for me to build R itself with -lpthread, so gdb doesn't get confused. -- Andrew Piskorski http://www.piskorski.com/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2009-09-07 Thread Andrew Piskorski
't any of your international collaborators run across this serialization problem before?) -- Andrew Piskorski http://www.piskorski.com/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2009-09-07 Thread Andrew Piskorski
n your Perl code. Have you tried using your Perl framework to fork something OTHER than R? Have you tried manually starting up two R processes and running your R code that way? And, what is the actual R code you're running? You don't seem to have shown i

Re: [Rd] Load a package without installing it

2009-09-05 Thread Andrew Piskorski
x27;d generally rather have R access my package's stuff via the search path in the usual manner, not from some other special location that Production never uses. -- Andrew Piskorski http://www.piskorski.com/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] ARM v7/Linux Port/cross-compile?

2009-08-28 Thread Andrew Piskorski
It sounds like you know a better way... -- Andrew Piskorski http://www.piskorski.com/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] how to change FPU control word?

2009-07-28 Thread Andrew Piskorski
nt? I don't know about that. But on Linux, mostly x86-64, we use these from C: _FPU_GETCW() _FPU_SETCW() -- Andrew Piskorski http://www.piskorski.com/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Rprof loses all system() time

2009-06-12 Thread Andrew Piskorski
SQL queries. Why does Rprof behave this way? Is there something I can do to work-around or alleviate this? What do you think it would take to fix Rprof to track the time spent waiting for system() to finish, and where in the R source should I look to att

Re: [Rd] Closed-source non-free ParallelR ?

2009-04-24 Thread Andrew Piskorski
second (or third?) implementation and dialect of the S language, originally created at Bell Labs. So gee, maybe R is "derived" from Bell Labs S, and R's own GPL license is invalid? Of course not, the entire idea is absurd (shades of SCO) - as I hope you agree. -- Andrew Piskorski http://www.piskorski.com/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] dger_ in BLAS definition

2009-03-10 Thread Andrew Redd
I'm developing some software and running into compiling warning: conditionals.c:104: warning: passing argument 4 of 'dger_' discards qualifiers from pointer target type conditionals.c:104: warning: passing argument 6 of 'dger_' discards qualifiers from pointer target type the netlib documentation

[Rd] (PR#8192) [ subscripting sometimes loses names

2009-01-31 Thread Andrew Piskorski
ately S-Plus 6.0 back in 2001 show similar buggy edge case behavior. Older versions of S-Plus, c. S-Plus 3.3 and earlier, had the correct, name preserving behavior. I presume that the original Bell Labs S had correct name-preserving behavior, and then the S-Plus develop

[Rd] Diagnosing Crashes on garbage collection

2008-11-16 Thread Andrew Redd
to use, would be a great help. Thanks, Andrew [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] typo in cov()? var() fails on NA in R 2.7.2 but not R 2.6.1

2008-09-05 Thread Andrew Piskorski
3L cor.R 36:else if (na.method != 3L) { 118:else if (na.method != 3L) { That line might not be the cause of my "no complete element pairs" problem (I'm not at all sure), but it does look suspicious. -- Andrew Piskorski <[EMAIL PROTECTED]> http://www.piskors

Re: [Rd] Erlang-style message-passing in R: Rmpi, Snow, NetWorkSpaces, etc.

2008-09-04 Thread Andrew Piskorski
could start up your several R processes on a single fat SMP node, and use an MPI that sends messages through fast shared memory. That's probably still slower than thread-to-thread communications, but it should be much lower latency than TCP/IP. Maybe you already tried something like tha

[Rd] Erlang-style message-passing in R: Rmpi, Snow, NetWorkSpaces, etc.

2008-09-04 Thread Andrew Piskorski
.org/wiki/Oz_(programming_language)#Dataflow_variables_and_declarative_concurrency 22. http://www.info.ucl.ac.be/~pvr/cvvanroy.html 23. http://www.amazon.com/gp/product/0262220695/ 24. http://www.mozart-oz.org/ -- Andrew Piskorski <[EMAIL PROTECTED]> http://www.piskorski.com/

[Rd] na.action does not return na.action element of lm object

2008-08-25 Thread Andrew Redd
s would already be included in the base. Is there a reason that it is not? I did a search through the archives but did not turn up anything relevant. Thanks, Andrew Redd __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Hardly worth a bug report, but ...

2008-04-05 Thread Andrew Robinson
is missing between support and with, or with should be removed. Andrew -- Andrew Robinson Department of Mathematics and StatisticsTel: +61-3-8344-6410 University of Melbourne, VIC 3010 Australia Fax: +61-3-8344-4599 http://www.ms.unimelb.edu.au/~andrewpr http://blogs.mbs.edu/fish

Re: [Rd] g++ 4.3 warning: deprecated conversion from string constant to ‘char*’3DIn-Reply-To: <4 [EMAIL PROTECTED]>

2008-04-03 Thread Andrew Finley
Hi Kurt and Brian, I was using R 2.6.2. Now, based on your suggestion, I've upgrade to 2.7.0 and am no longer mixing compilation versions of gcc/g++. The constant to char* warnings are gone. Thanks! -Andy Kurt Hornik wrote: >>>>>> Andrew Finley writes: > >> He

[Rd] g++ 4.3 warning: deprecated conversion from string constant to ‘char*’

2008-04-03 Thread Andrew Finley
/local/lib -o splmDIC.so splmDIC.o covmodel.o util.o -L/usr/local/lib/R/lib -lRlapack -L/usr/local/lib/R/lib -lRblas -L/usr/lib/gcc/i486-linux-gnu/3.4.6 -lg2c -lm -lgcc_s Thanks for your time. Kind regards- Andy -- Andrew Finley, PhD Natural Resources Building Michigan State University East Lansin

[Rd] R-uthreads?

2008-04-03 Thread Andrew Piskorski
nd I can't tell much just from looking at "src/main/uthreads.c". -- Andrew Piskorski <[EMAIL PROTECTED]> http://www.piskorski.com/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [patch] add=TRUE in plot.default()

2008-03-15 Thread Andrew Clausen
matter. (Econometrics uses different language...) > Data like that could make a convincing argument that the effort of > adding this to the base packages is worthwhile. (To get it added to > non-base packages will require you to convince their maintainers that > it's a good id

Re: [Rd] [patch] add=TRUE in plot.default()

2008-03-09 Thread Andrew Clausen
to be changed simultaneously, including in private/unreleased code. So I'd like to settle for second best: adding add=FALSE parameters to many plot methods. Cheers, Andrew __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [patch] add=TRUE in plot.default()

2008-03-09 Thread Andrew Clausen
on lines the same or similar? Are two utility functions the same? etc.) Cheers, Andrew __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [patch] add=TRUE in plot.default()

2008-03-09 Thread Andrew Clausen
stance, is there a command that can tell you if the axes have been drawn? If there were, then you could do something like f <- function(a) function(x) a * x^2 plot.new() for (a in c(1,2,3)) plot(f(a), add=(TRUE & par("axes.already.drawn")), col=a) C

[Rd] [patch] add=TRUE in plot.default()

2008-03-08 Thread Andrew Clausen
Hi all, As long as I've used R, add=TRUE hasn't worked in contexts like this: f <- function(x) x^2 X <- seq(0, 1, by=1/4) plot(f, col="blue") plot(X, f(X), col="red", type="l", add=TRUE) I attached a fix for ve

[Rd] CXXR: Refactoring the R interpreter into C++

2008-02-29 Thread Andrew Runnalls
interest to some readers of this list. Further information is at http://www.cs.kent.ac.uk/projects/cxxr Andrew Runnalls -- Dr Andrew Runnalls, Computing Laboratory, University of Kent, CANTERBURY CT2 7NF, UK Tel: (0)1227 823821 __ R-devel@r

Re: [Rd] strsignif.c, util.c (PR#10635)

2008-01-26 Thread Andrew Runnalls
n't. However, buffer overruns - when they do manifest themselves - can give rise to such baffling and hard-to-reproduce failures that they are like submerged rocks: well worth marking on the chart even if they're not close to current shipping lanes. Andrew Runnalls -- Dr Andrew

Re: [Rd] do_gsub (PR#10540)

2008-01-25 Thread Andrew Runnalls
or example, which explores this case); however, it seems unwise to rely on this. And what would happen if that (redundantly) allocated space just happened already to contain NA_STRING? Best regards, Andrew __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] knnFinder package

2008-01-18 Thread Andrew Finley
gt; > > > -- > Roger Bivand > Economic Geography Section, Department of Economics, Norwegian School of > Economics and Business Administration, Helleveien 30, N-5045 Bergen, > Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 > e-mail: [EMAIL PROTECTED] > >

Re: [Rd] Problem with dyn.load'ed code

2007-12-31 Thread Andrew Piskorski
t something like to this: PKG_LIBS = -Wl,--version-script=vis.map -Wl,-Bstatic -L/usr/local/lib/ARPACK -lARPACK -Wl,-Bdynamic You may also need a PG_PKG_LIBS with the same stuff, but I don't remember why. The '--version-script=' and related matters were also disccussed her

Re: [Rd] A suggestion for an amendment to tapply

2007-11-07 Thread Andrew Robinson
On Wed, Nov 07, 2007 at 08:15:17AM +0100, Peter Dalgaard wrote: > Andrew Robinson wrote: > >These are important concerns. It seems to me that adding an argument > >as suggested by Bill will allow the user to side-step the problem > >identified by Brian. > > &

Re: [Rd] A suggestion for an amendment to tapply

2007-11-06 Thread Andrew Robinson
simulations. If the timing seems acceptable, I can write a patch for tapply.R and tapply.Rd if anyone in the core is willing to consider them. Please contact me on or off list if so. Best wishes to all, Andrew On Tue, Nov 06, 2007 at 07:23:56AM +, Prof Brian Ripley wrote: > On Tue, 6

[Rd] A suggestion for an amendment to tapply

2007-11-05 Thread Andrew Robinson
attached script provides the new function in full, and demonstrates its application in some simple test cases. Best wishes, Andrew -- Andrew Robinson Department of Mathematics and StatisticsTel: +61-3-8344-9763 University of Melbourne, VIC 3010 Australia Fax: +61-3

Re: [Rd] R trunk (2.7) build fails with -fpic, needs -fPIC (PR#10372)

2007-10-25 Thread Andrew Piskorski
', removed my changes to configure, and... It worked! It now builds successfully with -fpic (not -fPIC). So, problem solved, thank you! And I apologize for wasting your time with this. -- Andrew Piskorski <[EMAIL PROTECTED]> http://www.piskorski.com/ _

Re: [Rd] R trunk (2.7) build fails with -fpic, needs -fPIC (PR#10372)

2007-10-24 Thread Andrew Piskorski
ls gcc-4.0 +++-==-=-== ii binutils 2.16.1cvs20060117-1ubuntu2.1 The GNU assembler, linker and binary utilities ii gcc-4.04.0.3-1ubuntu5The GNU C compiler -- Andrew Piskorski <[EMAIL PROTECT

Re: [Rd] Sligthly OT Re: Makefile for embedding OpenBUGS in R package

2007-08-06 Thread Andrew Clausen
executable runs, unless that component itself accompanies the executable." Cheers, Andrew __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Optimization in R

2007-08-04 Thread Andrew Clausen
does, you can probably just copy the relevant files into the right spot, and build Rgsl the normal way. (i.e. *.[ch] into src/, *.R into R/, and so on...) Cheers, Andrew On Sat, Aug 04, 2007 at 03:58:33PM -0400, Manuel Morales wrote: > I tried installing the multimin function. To get it

Re: [Rd] Optimization in R

2007-08-04 Thread Andrew Clausen
possibility of moving the core of your improvements to C once you are > happy with them. Fair enough. Cheers, Andrew __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Optimization in R

2007-08-04 Thread Andrew Clausen
quot;BFGS")$counts function gradient 318 100 So the overhead is clearly much bigger, but still too small to matter for most (?) applications. Cheers, Andrew PS, my computer is a "Intel(R) Pentium(R) 4 CPU 2.80GHz" with a 1024 KB cache, according to /proc/cpuinfo. _

[Rd] Optimization in R

2007-08-03 Thread Andrew Clausen
the overhead is small compared to the cost of evaluating likelihood functions anyway, and is easily made up by the better algorithms that are possible. * it would be useful to keep a repository of interesting optimization problems relevant to R users. Then R developers can evaluate "

Re: [Rd] relist, an inverse operator to unlist

2007-05-23 Thread Andrew Clausen
Hi Gabor, Can you suggest some examples of how your proposal could be used? Reshape never returns a vector. Cheers, Andrew On Tue, May 22, 2007 at 07:36:56PM -0400, Gabor Grothendieck wrote: > One additional idea. > > I wonder if reshape might be promoted to a generic and relist ma

Re: [Rd] relist, an inverse operator to unlist

2007-05-22 Thread Andrew Clausen
t;missing") rather than just "numeric". I have uploaded a new version here: http://www.econ.upenn.edu/~clausen/computing/relist.R Cheers, Andrew __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

  1   2   >