insert_table icon indicating copy to clipboard operation
insert_table copied to clipboard

Is the project still alive? Error in context$selection[[1]] : subscript out of bounds after

Open nitram9 opened this issue 3 years ago • 1 comments

Hi @lbusett ! I wanted to say thank you for developing this project. I am wondering if you are still working on it since the last commit is over two years ago. I think the idea is really great and it is perfect for what I need it for: to quickly covert the markdown table into properly formatted kable tables.

However, the GUI does not reliably load. An error is appearing after install. Although the GUI appears the first time after being installed, subsequent inserttable:::insert_table() commands result in the following error: Error in context$selection[[1]] : subscript out of bounds after

I can share environment info etc if you like. Currently I am running insert_table 0.4.0 from MacOS in RStudio 2021.09.1+372 "Ghost Orchid" Release (8b9ced188245155642d024aa3630363df611088a, 2021-11-08) for macOS Mozilla/5.0 (Macintosh; Intel Mac OS X 11_6_2) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.10 Chrome/69.0.3497.128 Safari/537.36 with R version 4.0.5 (2021-03-31) -- "Shake and Throw"

Thanks in advance!

nitram9 avatar Jan 07 '22 11:01 nitram9

Ok, I think I found the culprit for the unreliable GUI load: If no table is created after the first GUI opening, the logic may not work. Perhaps the package thinks the GUI is still open and thus is not properly terminated.

nitram9 avatar Jan 07 '22 11:01 nitram9