Re: [R] R function stopped working

2017-04-04 Thread DANIEL PRECIADO
400, Boris Steipe wrote: I discourage the use of print() for debugging. Put a browser() statement into your loop and when execution takes you to the debugger interface, examine your variables and expressions one by one. B. On Apr 4, 2017, at 10:09 AM, DANIEL PRECIADO mailto:danp...@h

Re: [R] R function stopped working

2017-04-04 Thread DANIEL PRECIADO
ironment to list, as in: f <- function() ls(.GlobalEnv) f() [1] "f" "foobar" On 4 Apr 2017, at 12:27 , DANIEL PRECIADO mailto:danp...@hotmail.com>> wrote: Thanks, but printing doesn't work within the function either. (i.e, no result or output, or error).

Re: [R] R function stopped working

2017-04-04 Thread DANIEL PRECIADO
th > the same as last week? > > -pd > > > > On 4 Apr 2017, at 10:50 , DANIEL PRECIADO > > wrote: > > > > The following function is supposed to search the workspace and save > > plots  (i.e. listing all objects in the workspace named "Figs", >

[R] R function stopped working

2017-04-04 Thread DANIEL PRECIADO
The following function is supposed to search the workspace and save plots  (i.e. listing all objects in the workspace named "Figs", which are all ggplot2 plots, and saving them as png files) SaveFigs <- function() { for (i in ls(pattern="_Figs_")) { filename = paste

[R] nlmrt problems - No confInt, NA StdErr, t-, or p-values

2017-03-21 Thread DANIEL PRECIADO
Dear list, I want to use nlxb (package nlmrt) to fit different datasets to a gaussian, obtain parameters (including standard error, t-and p-value) and confidence intervals. nlxb generates the parameters, but very often results in NA standard error,t-and p-values. Furthermore, using confint() t

[R] nls fitting & plotting to data subsets defined by combinations of categorical variables

2017-03-11 Thread DANIEL PRECIADO
Dear list, I want to apply the same nls function to different subsets of a larger dataset. These subsets are defined as unique combinations of two (categorical) variables, each one with two levels, so I should obtain 4 sets of parameters after fitting. I have managed to do it in a loop, creatin

[R] R / G GUI freezes saving plot

2016-03-18 Thread Daniel Preciado
Randomly, whenever I try to save a plot, R becomes unresponsive and has to be killed. This happens almost every time. R version 3.2.4 (2016-03-10) -- "Very Secure Dishes” Platform: x86_64-apple-darwin13.4.0 (64-bit) R.app GUI 1.67 (7152) x86_64-apple-darwin13.4.0 Os el capitan 10.11.3 (Although t

Re: [R] R / G GUI freezes saving plot

2016-03-18 Thread Daniel Preciado
you are doing when it becomes unresponsive? If so, it would be helpful to see an example. On Fri, Mar 18, 2016 at 5:45 AM, Daniel Preciado wrote: Randomly, whenever I try to save a plot, R becomes unresponsive and has to be killed. This happens almost every time. R version 3.2.4 (2016-03