Yep, I did. Got nothing. It does not come with R 3.4.3, which is the version I can use. R CMD Rdiff comes with this version, but it is a shell command not a R function. It is meant for diff'ing R output. ----- Original Message ----- From: "Jeff Newmiller" <jdnewmil at dcn.davis.ca.us> To: r-help at r-project.org, "Sebastien Bihorel" <sebastien.bihorel at cognigencorp.com>, "Martin M?ller Skarbiniks Pedersen" <traxplayer at gmail.com> Cc: "R mailing list" <r-help at r-project.org> Sent: Thursday, January 10, 2019 10:49:15 AM Subject: Re: [R] Diff'ing 2 strings Just type ?Rdiff it is in the preinstalled packages that come with R. On January 10, 2019 7:35:42 AM PST, Sebastien Bihorel <sebastien.bihorel at cognigencorp.com> wrote:>From which the diffobj package? > > >From: "Martin M?ller Skarbiniks Pedersen" <traxplayer at gmail.com> >To: "Sebastien Bihorel" <sebastien.bihorel at cognigencorp.com> >Cc: "R mailing list" <r-help at r-project.org> >Sent: Thursday, January 10, 2019 2:35:15 AM >Subject: Re: [R] Diff'ing 2 strings > > > >On Sat, Jan 5, 2019, 14:58 Sebastien Bihorel < [ >mailto:sebastien.bihorel at cognigencorp.com | >sebastien.bihorel at cognigencorp.com ] wrote: > > >Hi, > >Does R include an equivalent of the linux diff command? > > > > >yes. >?rdiff > >/martin > > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >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.-- Sent from my phone. Please excuse my brevity.
On 10/01/2019 11:38 a.m., Sebastien Bihorel wrote:> Yep, I did. Got nothing. It does not come with R 3.4.3, which is the version I can use. > > R CMD Rdiff comes with this version, but it is a shell command not a R function. It is meant for diff'ing R output.It's in the tools package, so ?tools::Rdiff should get what you want even in that version. But as you note, it isn't a general purpose diff for character vectors, it is targeted at comparing R output files. Duncan Murdoch> > > ----- Original Message ----- > From: "Jeff Newmiller" <jdnewmil at dcn.davis.ca.us> > To: r-help at r-project.org, "Sebastien Bihorel" <sebastien.bihorel at cognigencorp.com>, "Martin M?ller Skarbiniks Pedersen" <traxplayer at gmail.com> > Cc: "R mailing list" <r-help at r-project.org> > Sent: Thursday, January 10, 2019 10:49:15 AM > Subject: Re: [R] Diff'ing 2 strings > > Just type > > ?Rdiff > > it is in the preinstalled packages that come with R. > > On January 10, 2019 7:35:42 AM PST, Sebastien Bihorel <sebastien.bihorel at cognigencorp.com> wrote: >>From which the diffobj package? >> >> >> From: "Martin M?ller Skarbiniks Pedersen" <traxplayer at gmail.com> >> To: "Sebastien Bihorel" <sebastien.bihorel at cognigencorp.com> >> Cc: "R mailing list" <r-help at r-project.org> >> Sent: Thursday, January 10, 2019 2:35:15 AM >> Subject: Re: [R] Diff'ing 2 strings >> >> >> >> On Sat, Jan 5, 2019, 14:58 Sebastien Bihorel < [ >> mailto:sebastien.bihorel at cognigencorp.com | >> sebastien.bihorel at cognigencorp.com ] wrote: >> >> >> Hi, >> >> Does R include an equivalent of the linux diff command? >> >> >> >> >> yes. >> ?rdiff >> >> /martin >> >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> 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. >
It's the same thing. From ?Rdiff: "Given two *R* output files, compute differences ignoring headers, footers and some other differences." Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Jan 10, 2019 at 8:39 AM Sebastien Bihorel < sebastien.bihorel at cognigencorp.com> wrote:> Yep, I did. Got nothing. It does not come with R 3.4.3, which is the > version I can use. > > R CMD Rdiff comes with this version, but it is a shell command not a R > function. It is meant for diff'ing R output. > > > ----- Original Message ----- > From: "Jeff Newmiller" <jdnewmil at dcn.davis.ca.us> > To: r-help at r-project.org, "Sebastien Bihorel" < > sebastien.bihorel at cognigencorp.com>, "Martin M?ller Skarbiniks Pedersen" < > traxplayer at gmail.com> > Cc: "R mailing list" <r-help at r-project.org> > Sent: Thursday, January 10, 2019 10:49:15 AM > Subject: Re: [R] Diff'ing 2 strings > > Just type > > ?Rdiff > > it is in the preinstalled packages that come with R. > > On January 10, 2019 7:35:42 AM PST, Sebastien Bihorel < > sebastien.bihorel at cognigencorp.com> wrote: > >From which the diffobj package? > > > > > >From: "Martin M?ller Skarbiniks Pedersen" <traxplayer at gmail.com> > >To: "Sebastien Bihorel" <sebastien.bihorel at cognigencorp.com> > >Cc: "R mailing list" <r-help at r-project.org> > >Sent: Thursday, January 10, 2019 2:35:15 AM > >Subject: Re: [R] Diff'ing 2 strings > > > > > > > >On Sat, Jan 5, 2019, 14:58 Sebastien Bihorel < [ > >mailto:sebastien.bihorel at cognigencorp.com | > >sebastien.bihorel at cognigencorp.com ] wrote: > > > > > >Hi, > > > >Does R include an equivalent of the linux diff command? > > > > > > > > > >yes. > >?rdiff > > > >/martin > > > > > > [[alternative HTML version deleted]] > > > >______________________________________________ > >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > >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. > > -- > Sent from my phone. Please excuse my brevity. > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. >[[alternative HTML version deleted]]
> args(tools::Rdiff)function (from, to, useDiff = FALSE, forEx = FALSE, nullPointers = TRUE, Log = FALSE) NULL> version$version.string[1] "R version 3.4.3 (2017-11-30)" (The 'tools' package is not attached by default, so use ::.) Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Jan 10, 2019 at 8:39 AM Sebastien Bihorel < sebastien.bihorel at cognigencorp.com> wrote:> Yep, I did. Got nothing. It does not come with R 3.4.3, which is the > version I can use. > > R CMD Rdiff comes with this version, but it is a shell command not a R > function. It is meant for diff'ing R output. > > > ----- Original Message ----- > From: "Jeff Newmiller" <jdnewmil at dcn.davis.ca.us> > To: r-help at r-project.org, "Sebastien Bihorel" < > sebastien.bihorel at cognigencorp.com>, "Martin M?ller Skarbiniks Pedersen" < > traxplayer at gmail.com> > Cc: "R mailing list" <r-help at r-project.org> > Sent: Thursday, January 10, 2019 10:49:15 AM > Subject: Re: [R] Diff'ing 2 strings > > Just type > > ?Rdiff > > it is in the preinstalled packages that come with R. > > On January 10, 2019 7:35:42 AM PST, Sebastien Bihorel < > sebastien.bihorel at cognigencorp.com> wrote: > >From which the diffobj package? > > > > > >From: "Martin M?ller Skarbiniks Pedersen" <traxplayer at gmail.com> > >To: "Sebastien Bihorel" <sebastien.bihorel at cognigencorp.com> > >Cc: "R mailing list" <r-help at r-project.org> > >Sent: Thursday, January 10, 2019 2:35:15 AM > >Subject: Re: [R] Diff'ing 2 strings > > > > > > > >On Sat, Jan 5, 2019, 14:58 Sebastien Bihorel < [ > >mailto:sebastien.bihorel at cognigencorp.com | > >sebastien.bihorel at cognigencorp.com ] wrote: > > > > > >Hi, > > > >Does R include an equivalent of the linux diff command? > > > > > > > > > >yes. > >?rdiff > > > >/martin > > > > > > [[alternative HTML version deleted]] > > > >______________________________________________ > >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > >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. > > -- > Sent from my phone. Please excuse my brevity. > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. >[[alternative HTML version deleted]]
Thanks for the clarification. ----- Original Message ----- From: "Duncan Murdoch" <murdoch.duncan at gmail.com> To: "Sebastien Bihorel" <sebastien.bihorel at cognigencorp.com>, "Jeff Newmiller" <jdnewmil at dcn.davis.ca.us> Cc: r-help at r-project.org Sent: Thursday, January 10, 2019 11:43:14 AM Subject: Re: [R] Diff'ing 2 strings On 10/01/2019 11:38 a.m., Sebastien Bihorel wrote:> Yep, I did. Got nothing. It does not come with R 3.4.3, which is the version I can use. > > R CMD Rdiff comes with this version, but it is a shell command not a R function. It is meant for diff'ing R output.It's in the tools package, so ?tools::Rdiff should get what you want even in that version. But as you note, it isn't a general purpose diff for character vectors, it is targeted at comparing R output files. Duncan Murdoch> > > ----- Original Message ----- > From: "Jeff Newmiller" <jdnewmil at dcn.davis.ca.us> > To: r-help at r-project.org, "Sebastien Bihorel" <sebastien.bihorel at cognigencorp.com>, "Martin M?ller Skarbiniks Pedersen" <traxplayer at gmail.com> > Cc: "R mailing list" <r-help at r-project.org> > Sent: Thursday, January 10, 2019 10:49:15 AM > Subject: Re: [R] Diff'ing 2 strings > > Just type > > ?Rdiff > > it is in the preinstalled packages that come with R. > > On January 10, 2019 7:35:42 AM PST, Sebastien Bihorel <sebastien.bihorel at cognigencorp.com> wrote: >>From which the diffobj package? >> >> >> From: "Martin M?ller Skarbiniks Pedersen" <traxplayer at gmail.com> >> To: "Sebastien Bihorel" <sebastien.bihorel at cognigencorp.com> >> Cc: "R mailing list" <r-help at r-project.org> >> Sent: Thursday, January 10, 2019 2:35:15 AM >> Subject: Re: [R] Diff'ing 2 strings >> >> >> >> On Sat, Jan 5, 2019, 14:58 Sebastien Bihorel < [ >> mailto:sebastien.bihorel at cognigencorp.com | >> sebastien.bihorel at cognigencorp.com ] wrote: >> >> >> Hi, >> >> Does R include an equivalent of the linux diff command? >> >> >> >> >> yes. >> ?rdiff >> >> /martin >> >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> 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. >