0

As a newbie in R, I am wondering is there any command or packages in R which can provide and perform similar function in Linux as:

$ diff -y file01 file02

the -y flag is important because it can compare side by side.

I looked into some already asked questions such as Q1 Q2 Q3 and also the compare package but none is the one I am looking for!

Any help or suggestion is really appreciated.

Community
  • 1
  • 1
Daniel
  • 1,202
  • 2
  • 16
  • 25
  • 3
    You can make system calls with `system`, so `system("diff -y file01 file02")` – Gregor Thomas Feb 07 '17 at 22:39
  • @Gregor Thnx for the help. However, when I did so I faced following 127 errors: Warning message: running command 'diff -y file01 file02' had status 127 Any idea why? BTW, I am using RStudio , could it be the reason! – Daniel Feb 07 '17 at 23:41
  • Works for me using RStudio on a simple test case. Searching for "status 127" turned up [this question](http://stackoverflow.com/q/33646816/903061). Are you on Windows? If so, you'll need to [use a Windows equivalent](http://stackoverflow.com/q/6877238/903061). – Gregor Thomas Feb 08 '17 at 01:29

0 Answers0