Re: [R] [External] Re: Parser For Line Number Tracing

2025-01-19 Thread luke-tierney--- via R-help
look at entries in ?options for show.error.locations showErrorCalls showWarningCalls and adjust your options settings accordingly. Best, luke Regards, /ivo On Sun, Jan 19, 2025 at 2:39 AM Duncan Murdoch wrote: On 2025-01-18 8:27 p.m., Ivo Welch wrote: I am afraid my errors are worse

Re: [R] [External] Re: Building Packages. (fwd)

2024-03-21 Thread luke-tierney--- via R-help
[forgot to copy to R-help so re-sending] -- Forwarded message -- Date: Thu, 21 Mar 2024 11:41:52 + From: luke-tier...@uiowa.edu To: Duncan Murdoch Subject: Re: [External] Re: [R] Building Packages. At least on my installed version (which tells me it is out of date) they

Re: [R] [External] Function environments serialize to a lot of data until they don't

2024-03-08 Thread luke-tierney--- via R-help
y be a bit brittle. It has not been not ported to the parallel package, but it looks like most of the plumbing is there so porting it might not be too hard. If this really is due to promises, what would be the downsides of forcing them during serialization? Many. Think NSE, defaults that assu

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-20 Thread luke-tierney
-vanilla should work if the issue is a startup file. Best, luke -- Luke Tierney Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics andFax: 319-335-3017 Actuarial Science 241

[R] suprising behaviour of tryCatch()

2023-05-18 Thread Calboli Federico (LUKE)
Hello, I run a fisher.test() in a loop, with the issue that some of the data will not be useable. To protect the loop I used tryCatch but: sexsnp = rep(NA, 1750) for(i in 1:1750){tryCatch(sexsnp[i] = fisher.test(table(data[,3], data[,i + 38]))$p, error = function(e) print(NA))} Error: unexpecte

Re: [R] [External] alist() and missing variables

2022-05-02 Thread luke-tierney
ariable, they turn missing and can't be accessed. How can I safely detect and work with such values? You can detect them as you did here using missing(). This is what the byte code compiler implementation does. [https://homepage.stat.uiowa.edu/~luke/R/compiler/compiler.pdf] It's not

Re: [R] [External] Re: Package installation help: Stuck at "** byte-compile and prepare package for lazy loading"

2021-09-30 Thread luke-tierney
When I do full CRAN/BIOC installs I use Xvfb via something like Xvfb :5 -screen 0 1280x1024x24 & setenv DISPLAY :5 Best, luke On Thu, 30 Sep 2021, Brodie, Kent via R-help wrote: Bill-- BINGO.You have found the answer. After some testing on one of my environments where it

Re: [R] [External] Handling interrupts in long-running R functions

2021-09-10 Thread luke-tierney
Some variation of this might do it: tryCatch(for (i in seq_len(100)) Sys.sleep(1), interrupt = function(e) i) If you want the option to inspect and continue you would need to use withCallingHandlers and invoke a 'resume' restart. Best, luke On Fri, 10 Sep

Re: [R] [External] Unexplained behaviour of .Last.value

2021-06-19 Thread luke-tierney
Thanks for the report. Fixed in R-devel in r80530; will port to R-patched soon. Best, luke On Fri, 18 Jun 2021, Bickis, Mikelis wrote: Hello: Here is a bit of R-code: mvr [1] 2.2658 (sin(.Last.value)+sin(2*.Last.value)) [1] -0.2156507 acos((-sqrt(17)-1)/8) [1] 2.2658 (sin

Re: [R] [External] Why is R making a copy-on-modification after using str?

2020-12-02 Thread luke-tierney
On Mon, 30 Nov 2020, luke-tier...@uiowa.edu wrote: On Mon, 30 Nov 2020, Georg Kindermann wrote: Dear list members, I was wondering why R is making a copy-on-modification after using str. m <- matrix(1:12, 3) tracemem(m) #[1] "<0x559df861af28>" dim(m) <- 4:3 m[1,1] &

Re: [R] [External] Re: Why is R making a copy-on-modification after using str?

2020-11-30 Thread luke-tierney
owser() creating links to the environment that could be cleaned up in endcontext. There is a runtime cost to doing so, but probably worth looking into. Best, luke Hit c a couple of times now to get out of debugging, and m is left with two references to it. I don't see that if mea

Re: [R] [External] Why is R making a copy-on-modification after using str?

2020-11-30 Thread luke-tierney
y Duncan may resolve this. If not, someone will have to take a closer look. Best, luke I am using R version 4.0.3. Kind regards, Georg __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PL

Re: [R] [External] Re: help with web scraping

2020-07-24 Thread luke-tierney
Maybe try something like this: url <- "https://s1.sos.mo.gov/CandidatesOnWeb/DisplayCandidatesPlacement.aspx?ElectionCode=750004975"; h <- xml2::read_html(url) tbl <- rvest::html_table(h) Best, luke On Fri, 24 Jul 2020, Spencer Graves wrote: Hi Bill et al.:   That

Re: [R] [External] Re: read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2?

2020-07-16 Thread luke-tierney
Best, luke On Thu, 16 Jul 2020, Ista Zahn wrote: On Thu, Jul 16, 2020 at 5:15 PM Ista Zahn wrote: On Thu, Jul 16, 2020 at 8:18 AM Rui Barradas wrote: Hello, Thanks, but no, download.file still gives 403 Forbidden with both method = "libcurl" and method = "wget". I thin

Re: [R] [External] Re: Strange behavior when sampling rows of a data frame

2020-06-19 Thread luke-tierney
y this one can be addressed at the same time. Best, luke On Fri, 19 Jun 2020, William Dunlap via R-help wrote: It is a bug that has been present in R since at least R-2.14.0 (the oldest that I have installed on my laptop). Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Jun 19, 20

Re: [R] [External] Re: A stopifnot() nastiness, even if not a bug

2020-05-09 Thread luke-tierney
it's use to cost little more than the test in the passing case. That gets harder the more complexity is added to stopifnot. We could add a simpler stopifnot0, but I'm not sure I want to go there. Best, luke On Sat, 9 May 2020, Martin Maechler wrote: Martin Maechler on Mon, 13 A

Re: [R] [External] Re: Error in colouring by group in core plot R

2020-04-24 Thread luke-tierney
Or using matplot: matplot(cbind(g1, g2, g3), type = "l", col = c("red", "black", "blue"), lty = 1, lwd = 2) Best, luke On Fri, 24 Apr 2020, Jim Lemon wrote: Hi Luigi, This is pretty easy using "plot" and "lines": # ass

Re: [R] [External] Re: [FORGED] Re: Regarding R licensing usage guidance

2019-07-24 Thread Tierney, Luke
Thanks Roy -- I was about to write along the same lines. Best, luke On Wed, 24 Jul 2019, Roy Mendelssohn - NOAA Federal via R-help wrote: > Hi Rolf: > > As they say, do read the posting guide: > >> Good manners: Remember that customs differ. Some people are very direct.

Re: [R] [External] Re: R 3.6.1 and apcluster package

2019-07-18 Thread Tierney, Luke
be safely modified. Best, luke > Thanks Bill! > > - Jan > > On Thu, Jul 18, 2019, at 10:39, William Dunlap wrote: >> Note that you can reproduce this in R-3.5.1 if you specify serialization >> version 3 (which became the default in 3.6.0). >> >>> save

Re: [R] [External] Re: R 3.6.1 and apcluster package

2019-07-18 Thread Tierney, Luke
Something about the deferred string conversion object in a <- names(attributes(apresX)[[4]][[1]][[1]]) is malformed; .Internal(inspect(a)) also infinite loops. Will try to narrow this down. Best, luke On Thu, 18 Jul 2019, William Dunlap via R-help wrote: > If you use version=3, asci

Re: [R] [External] Re: Problem with random numbers/seed

2019-06-21 Thread Tierney, Luke
Maybe looking at ?suppressWarnings will make you feel better. Best, luke On Fri, 21 Jun 2019, Steven Yen wrote: > Unhappy but thanks. > Steven > > On 6/22/2019 1:13 AM, Uwe Ligges wrote: >> >> >> On 21.06.2019 19:09, Steven Yen wrote: >>> Now I see t

Re: [R] [External] Question about behavior of sample.kind in set.seed (R 3.6)

2019-04-14 Thread Tierney, Luke
Thanks for the report. The sample.kind argument was not being passed on to the .Internal. This is now fixed in R-devel and the R 3.6.0 branch. Best, luke On Fri, 12 Apr 2019, Elizabeth Purdom wrote: > Hello, > > I am trying to update a package for the upcoming release of R, an

Re: [R] Genuine relative paths with R

2018-10-10 Thread Tierney, Luke
file <- args[grepl(pat, args, args)] normalizePath(sub(pat, "", file)) } Then scriptFile() will give you something to work with. Best, luke On Wed, 10 Oct 2018, Olivier GIVAUDAN wrote: > Dear Eik, > > Thank you for your message. > > Yes, I already got to know th

[R] glmer won't allow quasi- distribution mixed models

2018-07-09 Thread Luke Duncan
Dear R folk I am trying to run a series of models on distance data for three different species of animals. My data are not zero-inflated (distances were recorded for locomotion only and so if the animal didn't move, it wasn't recorded) and are Poisson distributed. However, all of the models that I

Re: [R] R 3.5.0, vector memory exhausted error on readBin

2018-06-12 Thread luke-tierney
Windows system with well above half a terabyte of memory. Best, luke On restart (R 3.5.0), this did the trick and the files read normally. Thanks again for all the assistance! Val From: luke-tier...@uiowa.edu Sent: Tuesday, June 12, 2018 10:14 AM To: Valerie Cavett Cc: r-help@R-project.org

Re: [R] R 3.5.0, vector memory exhausted error on readBin

2018-06-12 Thread luke-tierney
llow your code to be more portable and avoid the risks of removing the allocation protection. Best, luke On Tue, 12 Jun 2018, Valerie Cavett wrote: Thanks so much for taking a look at this. 
 Before setting a new value, I opened a fresh session of R and checked to see whether there was any va

Re: [R] R 3.5.0, vector memory exhausted error on readBin

2018-06-12 Thread luke-tierney
. For my 4 GB mac numeric(8e9) works but numeric(9e9) causes R to be killed, so a setting of around 60GB _might_ be safe. File size probably doesn't matter in your example since you are setting a large value for n - I can't tell how large since you didn't provide your value of '

Re: [R] Problem with geterrmessage()

2018-02-22 Thread luke-tierney
Only the default error handler puts the error message in a buffer where it can be retrieved with geterrmessage. try() replaces the default error handler. Either look at the value returned by try() or use tryCatch with conditionMessage. Best, luke On Thu, 22 Feb 2018, Dennis Fisher wrote: R

Re: [R] Chi2 algorithm - R

2016-11-23 Thread Luke Skywalker
contact the maintainer or study the actual code. > > -pd > > > On 23 Nov 2016, at 17:08 , Luke Skywalker wrote: > > > > Good evening, > > > > I'm encountering a different kind of discretization with respect to the > > 1997 Liu and Setiono's one

[R] Chi2 algorithm - R

2016-11-23 Thread Luke Skywalker
Good evening, I'm encountering a different kind of discretization with respect to the 1997 Liu and Setiono's one descripted in their papers, using Chi2 algorithm for feature selection with discretization. As stated in R documentation (discretization - R (from CRAN)

[R] Permutations in matched-pair study where combinations of pairs change

2016-10-31 Thread Luke Gaylor
, which simulates a 100-fold permutation. Any advice would be greatly appreciated, Luke Set.seed(123) # prepare the data for the simulation #1. library(Matching) library(survival) library(dplyr) #2. require(doParallel) cl<-makeCluster(2) registerDoParallel(cl) #3. clusterEvalQ(cl,library(Match

Re: [R] Memory not release when an environment is created

2016-09-22 Thread luke-tierney
On Thu, 22 Sep 2016, luke-tier...@uiowa.edu wrote: My preference is to use a top level function in the package or global env that takes as arguments just the variables I want in the parent frame. That avoids the explicit environment manipulations. Here that would be makeFunc0 <- function(x

Re: [R] Memory not release when an environment is created

2016-09-22 Thread luke-tierney
min) makeFunc1 <- function(x) makeFunc0(min(x), max(x)) f <- makeFunc1(1:1e8) ls.str(all=TRUE, environment(f)) xmax : int 1 xmin : int 1 parent.env(environment(f)) f(c(1234567, 2345678)) [1] 0.01234566 0.02345677 Best, luke On Thu, 22 Sep 2016, William Dunlap v

Re: [R] interaction between clusterMap(), read.csv() and try() - try does not catch error

2016-08-08 Thread luke-tierney
probably be better in any case your code to use can use tryCatch and have the error. function return something easier to work with, like NULL. Best, luke On Mon, 8 Aug 2016, Strunk, Jacob (DNR) wrote: Hello I am attempting to process a list of csv files in parallel, some of which may be empty

Re: [R] Fwd: Help: malloc/free deadlock in unsafe signal handler 'Rf_onsigusr1'

2016-08-01 Thread luke-tierney
The handlers for SIGUSR1 and SIGUSR2 are really intended as an emergency break, not for ordinary programming. These could be rewritten to be safer but that would make them less immediate. Followups would be more appropriate on R-devel. Best, luke On Mon, 1 Aug 2016, Ming Li wrote: Hi all

Re: [R] C stack error in as.vector() starting in R 3.3.0

2016-07-06 Thread luke-tierney
I cannot reproduce this. My best guess is that there is a problem, maybe a version incompatibility, with one of the packages loaded when load("problem.method.rdata"). This includes adegenet apex copula Rcpp DBI sp colorspace and any dependencies these are bringing in. Best, luke

[R] post a message - R help. Surivival analysis and goodness of fit

2015-11-05 Thread Luke Gaylor
Hello there, I have registered for both through nabble and R-help-request with this email. I want to post the following question: I want to implement a Hosmer Lemeshow Goodness of Fit test to my survival analysis. In R we can use the hoslem.test() function. The x values are our observations, an

[R] Rscript silent failures with unmatched brackets

2015-02-26 Thread Luke Moryl
efore, but doing a quick search I didn’t find anything, and to me this seems like a significant bug. Thanks & best, Luke ​ [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz

Re: [R] snow/Rmpi without MPI.spawn?

2014-09-04 Thread luke-tierney
You could look into the RMPISNOW shell script that is included in snow for use with mpirun, eg as mpirun -np 3 RMPISNOW The script might need adjusting for your setting. Best, luke On Thu, 4 Sep 2014, Jim Leek wrote: Ah, now it's working. Thanks. Now I just need to figure out how t

[R] R function returning a list of variable(s) conditional on the value of an option?

2014-07-25 Thread Luke Hartigan
ver, I was wondering if anyone else had a better idea/method which might be more elegant? Many thanks, Luke [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] lapply returns NULL ?

2014-07-12 Thread luke-tierney
Another option is Filter(function(x) x[1] == 1, foo) Best, luke On Sat, 12 Jul 2014, ce wrote: Thanks Jeff et. all, This is exactly what I needed. -Original Message- From: "Jeff Newmiller" [jdnew...@dcn.davis.ca.us] Date: 07/12/2014 10:38 AM To: "Uwe Ligges"

Re: [R] Default argument not passed to subfunction when argument name matches default expression

2014-03-31 Thread Tierney, Luke
then there is no problem: > foo() [1] 4 > cmpfun(foo)() [1] 4 Best, luke Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics andF

Re: [R] Performance issue with attributes

2014-03-11 Thread luke-tierney
You can also upgrade to R-devel or to R 3.1.0 due out in a month or so -- those will run this code much more efficiently. Using setattr is OK if you really know what you are doing, but if you are not careful using it can modify objects you do not intend to modify. Best, luke On Tue, 11 Mar

Re: [R] why is as.date function not working for me? (dd/mm/yyyy h:mm)

2014-02-06 Thread Luke Miller
as.Date produces Dates only, with no time information, even if you try to supply it with hours + minutes. For dates+times, use as.POSIXct() or as.POSIXlt() in place of as.Date(). POSIXct produces a numeric value for the number of seconds since your specified origin time (usually 1970-01-01 00:00),

Re: [R] KnitR/RMarkdown: Is there a way to not print a section of the document?

2014-01-27 Thread Luke Miller
ASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- ___ Luke Miller __ R-help@r-project.org mailing list https://stat.ethz.ch/mai

Re: [R] Y-axis label not plotting

2013-11-27 Thread Luke M
think that I accidentally changed something (not sure what) on the default settings (I was trying to learn how to make plots), and I wonder if this could cause the problem I am having... On Wed, Nov 27, 2013 at 12:23 AM, Jim Lemon wrote: > On 11/27/2013 05:32 PM, Luke M wrote: > >

[R] Y-axis label not plotting

2013-11-27 Thread Luke M
Dear R community I am trying to make an XY plot that shows temperature (y axis) as a function of time (x axis) but I am having some problems. When I use the code shown below: 1. my plot does not show any of the y-axis labels even though there is plenty of white space there (i.e.: I am getting no

[R] gmmBoost creating huge 500+ gb vectors

2013-10-28 Thread Luke Miner
I'm trying to run bGLMM on a large dataset and it is failing after trying to create huge vectors with the error: Error: cannot allocate vector of size 553.7 Gb The dataset that I'm using is fairly large, around 1.5 million observations. The command is as follows: boost1 <- bGLMM(A~ B + C, rnd = l

Re: [R] save/load doubles memory [oops]

2013-09-17 Thread luke-tierney
likely any time soon. Best, luke On Tue, 17 Sep 2013, Ross Boylan wrote: On Tue, 2013-09-17 at 12:06 -0700, Ross Boylan wrote: Saving and loading data is roughly doubling memory use. I'm trying to understand and correct the problem. Apparently I had the process memories mixed up: R1 be

Re: [R] Issue with Imports in NAMESPACE

2013-06-25 Thread luke-tierney
idea since the help system isn't aware of the import/export chain. I don't know if R CMD check complains if you don't provide your own help page; if it doesn't it probably should. I also don't recall if we have a mechanism for such a help page on an import/export to

Re: [R] attr vs attributes

2013-05-13 Thread luke-tierney
its right hand side to a list if that is possible (and raises questions of whether we should just promote atomic vectors or allow the generic as.list to be called). I'm not convinced such a 'fix' would be a good thing as it might mask other bugs that are now being caught. luke On Fri

Re: [R] Unexpected behavior looping through sequence of dates

2013-03-09 Thread luke-tierney
On Sat, 9 Mar 2013, Alexandre Sieira wrote: Thanks for the clarification, Luke. That is really counter-intuitive behavior. I 100% agree with you that the "for" documentation should state that assumption explicitly. I would also like to suggest changing the "for" imple

Re: [R] Unexpected behavior looping through sequence of dates

2013-03-09 Thread luke-tierney
[This could be more emphatic by stating that any class attributes are igonred or something of that nature.] Having for() do anything else would require designing an iteration protocol -- probably would be nice in principle but not easy to do. Best, luke On Sat, 9 Mar 2013, Peter Ehlers wrote:

Re: [R] Hard Stop?

2013-02-07 Thread luke-tierney
ode that receives the transfer of control initiated by your 'Hard Stop". Best, luke On Thu, 7 Feb 2013, Duncan Murdoch wrote: On 06/02/2013 8:33 PM, ivo welch wrote: is it possible to throw a stop() that is so hard that it will escape even tryCatch? You can signal a condition that is n

Re: [R] Codetools Query (repost)

2013-01-16 Thread luke-tierney
r <- function(type, v, e, w){ if (! v %in% omit) assign(v, TRUE, funs) } collectUsage(moo, enterGlobal = enter) If %in% is too slow create a hashed envorinment and use exists(). Best, luke On Tue, 15 Jan 2013, Saptarshi Guha wrote: Sorry for reposting, i kee

Re: [R] try()-function does not catch error in BATCH-job if Matrix is loaded

2013-01-08 Thread luke-tierney
The work-around was actually put in plae prior to the release of R 2.15.2, so updating your R to the current released version will resolve this. Best, luke On Mon, 7 Jan 2013, luke-tier...@uiowa.edu wrote: This is due to long-staning issue in methods internals, which are involved because

Re: [R] try()-function does not catch error in BATCH-job if Matrix is loaded

2013-01-07 Thread luke-tierney
mean from Matrix you can use base::mean; otherwise you will have to use an R-devel snapshot. Best, luke On Mon, 7 Jan 2013, Sarah Brockhaus wrote: Hello, In my simulation I use the try()-function to catch possible errors when fitting models. I run the simulationon a Linux-server using the co

Re: [R] easy way to fit saturated model in sem package?

2012-07-13 Thread luke-tierney
Apologies -- replied to the wrong message. luke On Fri, 13 Jul 2012, luke-tier...@uiowa.edu wrote: They look fine to me. luke On Fri, 13 Jul 2012, Joshua Wiley wrote: Dear John, Thanks very much for the reply. Looking at the optimizers, I had thought that the objectiveML did what I

Re: [R] easy way to fit saturated model in sem package?

2012-07-13 Thread luke-tierney
They look fine to me. luke On Fri, 13 Jul 2012, Joshua Wiley wrote: Dear John, Thanks very much for the reply. Looking at the optimizers, I had thought that the objectiveML did what I wanted. I appreciate the clarification. I think that multiple imputation is more flexible in some ways

Re: [R] Efficient distance calculation on big matrix

2012-06-18 Thread luke-tierney
It so happens I have been looking at very similar changes, as well as adding multi-threading support for dist(); these should make it into R-devel later this summer. Best, luke On Sun, 17 Jun 2012, Stefan Evert wrote: I'm working on analyzing a large data set, lets asume that dim(Da

Re: [R] eclipse cran r

2012-06-12 Thread Luke Miller
; > > > > >        [[alternative HTML version deleted]] > > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html &g

Re: [R] Double-buffering problem, this time with an example.

2012-06-04 Thread luke-tierney
FOR what it's worth this dev.hold/dev/flush combination does not seem to prevent flickering on the quartz device on Macs. Best, luke On Sat, 2 Jun 2012, Duncan Murdoch wrote: On 12-06-02 4:02 PM, Daniel Carr wrote: Most of my animations that used to work on windows() version 2.11.

[R] Assessing interaction effects in GLMMs

2012-05-26 Thread Luke Duncan
T1200: T1300: Time11h00 Time12h00 Time13h00 Time14h00 TertileLow Max Min Tm11h00:TrL Tm12h00:TrL Tm13h00:TrL 0.081 Tm14h00:TrL 0.098 0.116 Luke Duncan *Post-doctoral** Fellow* *School of Animal, Plant and Environmental Sciences* *University of the Witwatersrand* *Johannesbur

Re: [R] how to remove the 'promise' attribute of an R object (.Random.seed)?

2012-05-22 Thread luke-tierney
I believe it would be better if the internal code forced the promise at this point. I'll have a look; there may be a few other similar instances worth looking at. luke On Tue, 22 May 2012, Yihui Xie wrote: Thanks! That is exactly what I did (https://github.com/yihui/knitr/blob/mas

Re: [R] how to remove the 'promise' attribute of an R object (.Random.seed)?

2012-05-22 Thread luke-tierney
ple answer: Don't creat the promise in the first place, i.e. don't use delayedAssign. What is the real context where this arises? Knowing that may help us decide whether the internals should address this possibility. Best, luke Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http

Re: [R] Solve an ordinary or generalized eigenvalue problem in R?

2012-04-21 Thread Luke Hartigan
ace for example) as those from MATLAB. Kind regards, Luke [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posti

Re: [R] enableJIT(2) causes major slow-up in rpart

2012-04-13 Thread luke-tierney
The level 2 is a heuristic meant to help with certain kinds of programming idioms. It isn't always going to work. In this case trace(cmpfun) will show three functions being compiled each time through. Not sure why -- I'll try to find out and see if it can be avoided. luke On Thu, 1

Re: [R] recover lost global function

2012-04-05 Thread luke-tierney
uble than it is worth though. luke On Thu, 5 Apr 2012, Sam Steingold wrote: * Duncan Murdoch [2012-04-04 21:46:57 -0400]: On 12-04-04 5:15 PM, Sam Steingold wrote: * Duncan Murdoch [2012-04-04 17:00:32 -0400]: There's no warning when you mask a function with a non-function at top le

Re: [R] How to add grid lines at specific position to a plot?

2012-03-15 Thread Luke Miller
gt; http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- ___ Luke Miller Postdoctoral Researcher Hopkins Marine Station, Stanford University 120 Ocean View Blvd Pacific Grove, CA 93950 831-655-6208 [[alternative HTML

Re: [R] memory management

2012-02-29 Thread luke-tierney
problems it would create for external C/Fortran code on which R heavily relies. -- Luke Tierney Chair, Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 319-335-3386 Department of Statistics andFax:

Re: [R] how to unzip files in R

2012-01-31 Thread Luke Miller
Try the bzfile() function instead of unz(). You'll find that you're taken to the same help page for both of those functions. ?bzfile On Tue, Jan 31, 2012 at 2:34 PM, ql16717 wrote: > > Hi, > > I have downloaded a bunch of bz2 files. I wonder if R will be able to > unzip them in a batch mode or e

Re: [R] Incorrect DateTime using ISOdatetime in R

2012-01-20 Thread Luke Miller
TC" / (24*3600) > myTime7 [1] 666.2584 attr(,"tzone") [1] "UTC" > myTime8 = ISOdatetime(2009,1,1,0,0,0, tz = "UTC") + (myTime7*24*3600) > myTime8 [1] "2010-10-29 06:12:09 UTC" That should cure your problems. You should re-run all of your FPT

Re: [R] Incorrect DateTime using ISOdatetime in R

2012-01-20 Thread Luke Miller
zone where a reading was taken? If you crossed between time zones for some of your readings it might explain the fluctuating difference between the answer you expect and the answer that ISOdatetime gives you. -Luke On Fri, Jan 20, 2012 at 6:59 AM, Sula2011 wrote: > > Dear list, > &g

Re: [R] using StatEt IDE for Eclipse

2011-12-06 Thread Luke Miller
indow. > at de.walware.statet.nico.ui.NicoUITools.accessTool(NicoUITools.java:137) >  at > de.walware.statet.nico.ui.NicoUITools.accessController(NicoUITools.java:178) > at > de.walware.statet.nico.ui.NicoUITools.accessController(NicoUITools.java:166) >  at > de.walware.statet.r.internal.debu

Re: [R] R endnote entry

2011-11-30 Thread Luke Miller
' becomes R. D. C. T. etc. > > Cheers. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-co

Re: [R] Weird R's behaviour with a quoted name

2011-11-21 Thread luke-tierney
ect line "symbol name caching bug: attributes get tied to symbol names". The consensus then seemed to be that prohibiting attributes on things of class "name" was the way to go. Yes -- just hasn't risen high enough on anyone's todo list to get done. Best, luke B

Re: [R] Specifying Greek Character in Lattice Plot Label

2011-10-21 Thread Luke Miller
g list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > David Winsemius, MD > West Hartford, CT > > ___

Re: [R] Read wav file into R

2011-10-15 Thread Luke Miller
Try the tuneR package. It will read in wav files and has other functions for manipulating sound data. On Oct 15, 2011 9:32 PM, "Noah Silverman" wrote: > Hi, > > I'm interested in doing some sound analysis with R. > > Does anyone have any experience/methods for reading in a wav file? > > -- > Noa

Re: [R] How to adjust the y-axis range in barplot properly

2011-09-22 Thread Luke Miller
org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- ___

Re: [R] Help writing basic loop

2011-09-16 Thread Luke Miller
iling list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- ___ Luke Miller Po

Re: [R] help subsetting data based on date AND time

2011-09-08 Thread Luke Miller
89695.n4.nabble.com/help-subsetting-data-based-on-date-AND-time-tp3799933p3799933.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help >

Re: [R] Help with creating date as POSIXct

2011-09-01 Thread Luke Miller
gt; https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- ___ Luke Miller Postdoctoral Researcher Marine Science C

[R] Getting vastly different results when running GLMs

2011-08-17 Thread Luke Duncan
ich the model is fitted (R does iteratively reweighted least squares whereas, Statistica may use something entirely different; what exactly, I have no clue...) but I am none the wiser in this regard, so I really don't know. Regards, in despiration... Luke *PhD Candidate* *Sc

[R] How do you report lmer results?

2011-07-26 Thread Luke Duncan
.773 1.6792  1  0.195 As I understand this output, the only significant predictor in the model appears to be time of day. But, I don't really know how this should be reported. Can you point me to some papers or examples where lmer outputs have been reported formally? Any help t

[R] Is there an R program that produces optimal solution/mix of multiple samples' varying volumes and values

2011-07-25 Thread luke
rces for the desired curve, and for a specified amount? I hope that makes sense as a reader. Thanks for your time. Luke __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] Question about output from twitteR package

2011-07-23 Thread Doug Luke
siah I hope I'm missing something simple, but my gut tells me that I need to do some type of authentification before this information will be returned. I couldn't find any useful examples of this issue or how to get around it after looking for a while. Thanks, Douglas Luke

Re: [R] strange date problem - May 3, 1992 is NA

2011-06-22 Thread Luke Miller
; locale: > [1] LC_COLLATE=English_United States.1252 > [2] LC_CTYPE=English_United States.1252 > [3] LC_MONETARY=English_United States.1252 > [4] LC_NUMERIC=C > [5] LC_TIME=English_United States.1252 > > attached base packages: > [1] stats     graphics  grDevices utils     dat

Re: [R] Quick R syntax question

2011-06-20 Thread Luke Miller
sign, so I'm not clear why we need to put > quotation marks around the dataframe column headers... > > Thanks, > > Ben > > > On Mon, Jun 20, 2011 at 11:58 AM, David Winsemius > wrote: >> >> On Jun 20, 2011, at 11:47 AM, Luke Miller wrote: >> >>

Re: [R] Quick R syntax question

2011-06-20 Thread Luke Miller
gt; Thanks, > > Ben > >        [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and prov

Re: [R] Snow/Snowfall hangs on windows 7

2011-05-16 Thread luke-tierney
r nws back ends on Linux. Again, if this version creates problems for you and you are willing to help sort things out please let me know. This release also includes some experimental performance monitoring tools described in ?snow.time. Best, luke On Mon, 16 May 2011, Uwe Ligges wrote: Folks,

Re: [R] setting options only inside functions

2011-05-02 Thread luke-tierney
On Fri, 29 Apr 2011, William Dunlap wrote: -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of luke-tier...@uiowa.edu Sent: Friday, April 29, 2011 9:35 AM To: Jonathan Daily Cc: r-help@r-project.org; Hadley Wickham; Barry Rowlingson

Re: [R] setting options only inside functions

2011-04-29 Thread luke-tierney
nd an __exit__ method. Very neat. Barry __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, re

Re: [R] setting options only inside functions

2011-04-27 Thread luke-tierney
Put together a list and we can see what might make sense. If we did take this on it would be good to think about providing a reasonable mechanism for addressing the small flaw in this function as it is defined here. Best, luke On Wed, 27 Apr 2011, Hadley Wickham wrote: This has the side

Re: [R] print to .jpeg

2011-04-12 Thread Luke Miller
And of course I need to close the parentheses completely on jpeg(). Apologies for the double post. jpeg(paste(species.name, '.jpg', sep = '')) On Tue, Apr 12, 2011 at 10:02 PM, Luke Miller wrote: > How about using paste() inside the jpeg() function to append a 

Re: [R] print to .jpeg

2011-04-12 Thread Luke Miller
__ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-

Re: [R] Does R have a "const object"?

2011-03-16 Thread luke-tierney
ll need it for constants and primitives. It may be useful for some closures as well, so that change may come farther down the line. luke -- Luke Tierney Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone: 31

Re: [R] Does R have a "const object"?

2011-03-16 Thread luke-tierney
ntal that might break things make experimenting more awkward? Since you wouldn't like to see such warnings in production code this does make doing something in production code that can break other people's code more awkward. As I do actually care bout whether my code works or not I'm f

Re: [R] Does R have a "const object"?

2011-03-16 Thread luke-tierney
can assume that these bindings have certain values and certain properties and one can write reliable programs against these assumptions. Best, luke -- Luke Tierney Statistics and Actuarial Science Ralph E. Wareham Professor of Mathematical Sciences University of Iowa Phone

Re: [R] Does R have a "const object"?

2011-03-16 Thread luke-tierney
things in base work and so reduce code reliability. Best, luke On Wed, 16 Mar 2011, Allan Engelhardt wrote: On 16/03/11 15:04, Gabor Grothendieck wrote: On Wed, Mar 16, 2011 at 10:54 AM, Allan Engelhardt wrote: [...] Yes, but you can still print(base::pi) and rm(pi) to get back to our flat

Re: [R] Make R 'Beep'

2011-03-08 Thread Luke Miller
/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- ___ Luke Miller Postdoctoral Researcher Marine Science Center Northeastern Univers

  1   2   >