Previous to updating to Rstudio Version 2022.12.0+353 (2022.12.0+353) I was able to link to code scripts without a problem from within the RStudio window. Now I’m getting ‘No linkable item in RStudio’.
I am, however, able to link to the script from Finder, which is a good workaround for the time being.
The latest Rstudio is an electron which does not support AppleScript any more. Hookmark’s current script is unable to get the file url by running the following command in AppleScript:
cmd “clipr::write_clip( rstudioapi::getActiveDocumentContext()$path)”
I have been trying to figure out some way to run this R command but no luck yet.
The Electron-based IDE will replace the QtWebEngine version entirely in a future release, but for now is considered experimental and should not be used for production work. Most users should continue using the QtWebEngine-based desktop release.
are you using a preview, or the official version?
Current script relies on rstudioapi and clipr packages. Presumably in electron version new packages will be provided. One of us here should (and RStudio enthusiasts can) look into what APIs are being developed / ported to electron.
All Hookmark needs is the path of current document, then Hookmark can work out the rest (document name, opening the file).
I don’t know what the ticketing system is for RStudio but that will be a path if they don’t have an API yet.