ess-view-data icon indicating copy to clipboard operation
ess-view-data copied to clipboard

ess-view-data-print no headers until end-of-buffer + beginning-of-buffer

Open maxecharel opened this issue 2 years ago • 2 comments

Calling ess-view-data-print on a simple dataframe yields the following: error_when_calling_ess-view-data-print_no_colnames_annotate So I get an error message and no header but the content of the dataframe is actually printed. However, visiting the Data View buffer and doing M-x end-of-buffer directly followed by M-x beginning-of-buffer makes the headers appear (i.e. somehow solves the problem): colnames_when_end-of-buffer_then_beginning-of-buffer_annotate (Thank you for this cool package!)

maxecharel avatar Feb 13 '23 09:02 maxecharel

I is a known issue. I haven't find a solution. Maybe I'll remove those "# Trace: ..." head lines which may help.

Now the headline depends on csv-mode and it may not triggered at the right time.

ShuguangSun avatar Feb 13 '23 09:02 ShuguangSun

I is a known issue. I haven't find a solution. Maybe I'll remove those "# Trace: ..." head lines which may help.

Now the headline depends on csv-mode and it may not triggered at the right time.

Note that if the point remains on the first column and I go down rows, this does not solve the problem. However if I do M-x move-end-of-line, it does the same as the M-x end-of-buffer ... combination mentioned in my description of the issue. So apparently spanning columns triggers the expected behavior. Hope this helps.

EDIT: Actually when I move forward until reaching a column that is not visible in the buffer, it triggers the header. However, doing the same along rows does not trigger it.

maxecharel avatar Feb 13 '23 09:02 maxecharel