similar to: Re: [R] Error message during debug (PR#6804)

Displaying 20 results from an estimated 20000 matches similar to: "Re: [R] Error message during debug (PR#6804)"

2003 Nov 05
1
save(iris,file=
I tried it using file and it seems to work for saving: > data(iris) > con <- file("clipboard","w") > save(iris,ascii=T,file=con) > close(con) > readLines("clipboard") ... lengthy output follows which seems correct ... but not for loading: > con <- file("clipboard","r") > load(con) Error in load(con) : loading from
2004 Jul 12
0
Where does R search when source() ?
I have found the use of save( ) and attach( ) when supported by a pair of functions written by my colleague John Miyamoto, move( ) and rm.sv( ) quite useful in managing (1) collections of useful homebrew functions, (2) project workspaces, and (3) "packages" under development. An .Rdata file containing these and other handy functions together with a brief supporting document can be
2003 Dec 25
1
problem with pipes (PR#5053)
I gather that the pipe problem is a difficult one to solve since its highly desirable (at least for me) to be able to use Windows pipes yet its been outstanding since the previous R release. I have one idea on a possible workaround and associated feature and I wonder if this feature is feasible? I just noticed that z <- system("c:\\a.bat", intern = TRUE, invisible = TRUE) is
2004 Nov 18
5
Building Packages on Windows using .Rbuildignore (PR#7379)
On Thu, 18 Nov 2004 00:38:47 +0000 (UTC), Gabor Grothendieck <ggrothendieck@myway.com> wrote : >DIFFERENCE BETWEEN USING .RBUILDIGNORE AND NOT > >The reason that the processing is different according to whether one >uses .Rbuildignore or not is that > R CMD build >takes the .Rbuildignore file into account but > R CMD install > R CMD check > R CMD build
2003 Nov 08
5
accessing windows clipboard from load and save (PR#4999)
Full_Name: Gabor Grothendieck Version: 1.7.1 OS: Windows 2000 Submission from: (NULL) (207.35.143.81) save(x,ascii=TRUE,file("clipboard")) works but load(file("clipboard")) does not. Even better would be if save(x,ascii=TRUE,"clipboard") and load("clipboard") worked as that would provide consistency with
2004 Aug 28
6
model.matrix.default chokes on backquote (PR#7202)
Full_Name: Gabor Grothendieck Version: R version 1.9.1, 2004-08-03 OS: Windows XP Submission from: (NULL) (207.35.143.52) The following gives an error: > `a(b)` <- 1:4 > `c(d)` <- (1:4)^2 > lm(`a(b)` ~ `c(d)`) Error in model.matrix.default(mt, mf, contrasts) : model frame and formula mismatch in model.matrix() To fix it replace this line in model.matrix.default:
2004 Jun 24
2
Packages of snippets? (was: A way to list only variables or functions?)
From: Duncan Murdoch <dmurdoch@pair.com> >I do understand the feeling of >writing a nice little function, and not knowing exactly what to do >with it: CRAN is crowded, and it does seem that an entire package >just to support one or two simple functions is a bit of overkill. >Can we work out a way to publish such things? Here's a >proposal, with some serious flaws
2004 Aug 18
1
Fwd: strptime() problem? - Resolved
Hi Gabor and everybody; Thanks Gabor, with the alternative step you've told me the problem is resolved. Comparing the two procedures: Extract from the source 'character' data: > rain$ts[2039:2046] [1] "25/03/2000 22:00:00 UTC" "25/03/2000 23:00:00 UTC" [3] "26/03/2000 00:00:00 UTC" "26/03/2000 01:00:00 UTC" [5] "26/03/2000 02:00:00
2005 Jan 12
0
changing langage [SOLVED]
To all that replied, thanks... I have a clue where I can change the settings. tnx, Kurt Sys >----- Oorspronkelijk bericht ----- >Van : Gabor Grothendieck [mailto:ggrothendieck at myway.com] >Verzonden : woensdag , januari 12, 2005 05:26 PM >Aan : r-help at stat.math.ethz.ch >Onderwerp : Re: [R] changing langage > >Kurt Sys <kurt.sys <at> pandora.be> writes:
2005 Jan 26
1
summarizing daily time-series date by month
Message: 63 Date: Wed, 26 Jan 2005 04:28:51 +0000 (UTC) From: Gabor Grothendieck <ggrothendieck at myway.com> Subject: Re: [R] chron: parsing dates into a data frame using a forloop To: r-help at stat.math.ethz.ch Message-ID: <loom.20050126T052153-333 at post.gmane.org> Content-Type: text/plain; charset=us-ascii Benjamin M. Osborne <Benjamin.Osborne <at> uvm.edu>
2003 Oct 14
1
Web Site Suggestion Regarding R Source
In the Lua language they have put the entire source on the net in such a way that you can easily browse it. Go to: http://www.lua.org/source/5.0/ to see what I mean. One of the nice things about R is that if you want more info on a function than in the help page you can just type the name of the function at the R prompt and you get its source, at least if it itself was written in R.
2003 Nov 12
2
problem with pipes (PR#5053)
Full_Name: Gabor Grothendieck Version: 1.8.0 OS: Windows 2000 Pro Submission from: (NULL) (67.68.47.99) In R 1.8.0 on Windows 2000 suppose that \a.bat contains the following two lines: net /? dir \winnt which constitutes a simple batch file which 1. writes a help message about the built in Windows net command to stderr and 2. does a dir on the built in Windows directory WINNT writing
2004 Apr 21
2
resetting the interpreter
Hi, Sometimes I want to "reset" the R interpreter (as if I quit and started it again, with everything starting from scratch). The main reason for this is when I expreriment with calculations, and later form them into general functions, sometimes I forget to include variables or reset some settings which I don't notice because they are already set. This causes problems during batch
2003 Dec 19
5
for loop over dataframe without indices
One can perform a for loop without indices over the columns of a dataframe like this: for( v in df ) ... some statements involving v ... Is there some way to do this for rows other than using indices: for( i in 1:nrow(df) ) ... some statements involving df[i,] ... If the dataframe had only numeric entries I could transpose it and then do it over columns but what about the general case?
2023 Nov 14
1
data.frame weirdness
On Tue, 14 Nov 2023 at 09:41, Gabor Grothendieck <ggrothendieck at gmail.com> wrote: > > Also why should that difference result in different behavior? That's justifiable, I think; consider: > d1 = data.frame(a = 1:4) > d2 = d3 = data.frame(b = 1:2) > row.names(d3) = c("a", "b") > data.frame(d1, d2) a b 1 1 1 2 2 2 3 3 1 4 4 2 > data.frame(d1,
2004 Mar 18
12
substitute question
Consider the following example: # substitute a with b in the indicated function. Seems to work. > z <- substitute( function()a+1, list(a=quote(b)) ) > z function() b + 1 # z is an object of class call so use eval # to turn it into an object of class expression; however, # when z is evaluated, the variable a returns. > eval(z) function()a+1 Why did a suddenly reappear again
2023 Nov 14
1
data.frame weirdness
Also why should that difference result in different behavior? On Tue, Nov 14, 2023 at 9:38?AM Gabor Grothendieck <ggrothendieck at gmail.com> wrote: > > In that case identical should be FALSE but it is TRUE > > identical(a1, a2) > ## [1] TRUE > > > On Tue, Nov 14, 2023 at 8:58?AM Deepayan Sarkar > <deepayan.sarkar at gmail.com> wrote: > > > >
2004 Dec 24
6
Sorting problem
Hi I'm using R 2.0 in SuSE 9.2. When I plot data as a boxplot, the boxes appear on the plot in alphabetical order (of group) rather than the order in which they appear in the data. So far, the only thing I can do to fix this is to prefix the group labels with a,b,c...etc to trick R into plotting them in the right order. Can sorting be turned off? How should I address this sensibly? Thanks
2004 Aug 18
5
labeled break statements in R?
Hi, Are there labeled break statements in R? i.e., something along the lines of TOPLOOP: for(i in 1:m) { for(j in 1:n) { ... if(condition) { break TOPLOOP } } } Thanks, Roger
2004 Apr 20
2
Debug problem
Consider the following R session under Windows XP Pro. Note that if we set debugging for function f then even if we reset its environment it still has debugging on. Also if we copy f to g then g has debugging; however, if we change g's environment then g no longer has debugging. Why did f retain debugging when its environment was changed but g did not? R : Copyright 2004, The R