emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
626 stars 161 forks source link

Incorrect line break after <NA> in iESS buffer #1195

Closed markseeto closed 2 years ago

markseeto commented 2 years ago

I'm having a problem similar to, or maybe the same as, the one described in this issue: https://github.com/emacs-ess/ESS/issues/759

The problem is that line breaks sometimes incorrectly appear after occurrences of <NA> in the iESS buffer, as shown in this example:

d <- data.frame(x = c(NA, "a"), y = c("b", NA))

d

#      x    y
# 1 <NA> 
#    b
# 2    a <NA>

I'm using ESS 18.10.2 in Vincent Goulet's modified Emacs 27.2 for Windows.

From what I can gather, the problem has been fixed in later versions of ESS, but I have not been able to install ESS from MELPA (https://github.com/emacs-ess/ESS/issues/1165).

Is there any workaround that I can use to fix this problem in ESS 18.10.2?

Thanks.

markseeto commented 2 years ago

Fixed by copying the definition of ess--offset-output from the latest ess-tracebug.el into my init file, and also adding (setq inferior-ess-fix-misaligned-output nil).