DataEditR icon indicating copy to clipboard operation
DataEditR copied to clipboard

DataEditR aborts when one tries to paste more columns than the available

Open psads-git opened this issue 3 years ago • 6 comments

Suppose one removes all columns but one and, subsequently, tries to paste 3 columns from, say, a spreadsheet, DataEditR simply aborts. Should not DataEditR add more columns in order to accommodate the whole pasted data?

psads-git avatar Oct 05 '21 10:10 psads-git

DataEditR only allows addition of columns one at a time, so you need to add the columns before pasting the data.

DillonHammill avatar Oct 05 '21 10:10 DillonHammill

Thanks, Dillon. In any case, DataEditR should not abort and should instead inform the user about that feature of DataEditR.

psads-git avatar Oct 05 '21 10:10 psads-git

Unfortunately this is handled at the rhandsontable level so there is not much I can do here. Let's leave this issue open for now and I will dive into the rhandsontable code when I get a chance.

DillonHammill avatar Oct 05 '21 10:10 DillonHammill

That is OK, Dillon. Thanks!

Interestingly, if one pastes more rows than the ones available, there is no issue and DataEditR adjusts the number of rows as needed.

psads-git avatar Oct 05 '21 11:10 psads-git

Related issue: If I have set row_edit = FALSE and accidentally paste something that is larger than the existing data then the app crashes. Preferable would be either a simple check and error message if the paste extent is too large, or trim the paste to what does fit.

sch56 avatar Jun 12 '22 23:06 sch56

Unfortunately this is handled at the rhandsontable level so there is not much I can do here. Let's leave this issue open for now and I will dive into the rhandsontable code when I get a chance.

Hi! I've noticed that I can paste data with more columns than there are available in the table when using rhandsontable package now, but this is not currently possible with DataEditR. Is there a way to fix it?

VeraZhouWeiwei1999 avatar Jul 01 '24 14:07 VeraZhouWeiwei1999