Questions tagged [diffobj]

Use for questions involving the diffobj R package for comparing R objects.

diffobj applies semantic diffs to the text representation of R objects. See also the website: https://github.com/brodieG/diffobj.

4 questions
1
vote
1 answer

Diff file loses HTML formatting when run from command line vs RStudio

I have two files and am using R's diffobj to create an HTML difference file between them. When I run the RScript in RStudio all is well and I get a diff HTML file like: When I run the script from the command line, the HTML diff file looks…
ixodid
  • 2,180
  • 1
  • 19
  • 46
1
vote
0 answers

How to solve "Error in rstudio_with_ansi_support()"?

I've searched for the problem on error messages on diffPrint() function in R. However, I have no idea how to solve this error. When I applied to diffPrint(), the characters in two data were garbled; thus, I couldn't read them. Moreover, diffPrint()…
seulki choi
  • 45
  • 1
  • 8
0
votes
1 answer

How to save diffObj as HTML that's readable by a browser?

The code below compares two vectors and creates the difference, diff_content, formatted as "HTML". Typing diff_content in RStudio's Console brings up this table in the Viewer: However, when I save diff_content with save_html and then try to open…
ixodid
  • 2,180
  • 1
  • 19
  • 46
0
votes
1 answer

Visualise diff in html report

I would like to produce an html report which visualises the difference between a number of very similar texts. I found the diffobj package, which does what I want if used in an interactive session: However, I can't figure out how to render this in…
JBGruber
  • 11,727
  • 1
  • 23
  • 45