From: Fischlin A. <afi...@us...> - 2021-05-14 08:33:03
|
Dear Bernard, Perhaps one more thing on this: As I said initially, this may also be the result from changes in R and it could well be that Alpha’s S+/R mode is not the reason for the change in behavior. Andreas ETH Zurich Prof. em. Dr. Andreas Fischlin IPCC Vice-Chair WGII Systems Ecology - Institute of Biogeochemistry and Pollutant Dynamics CHN E 24 Universitaetstrasse 16 8092 Zurich SWITZERLAND and...@en...<mailto:and...@en...> www.sysecol.ethz.ch/people/andreas.fischlin.html<http://www.sysecol.ethz.ch/people/andreas.fischlin.hml> +41 44 633-6090 phone +41 44 633-1136 fax +41 79 595-4050 mobile Make it as simple as possible, but distrust it! ________________________________________________________________________ On 13/05/2021, at 16:23, Bernard Desgraupes <bde...@us...<mailto:bde...@us...>> wrote: I'm not sure what you call "previous behavior" since Alpha's R mode has been working like this for several years now. Anyway, what you want to achieve is quite simple to implement. Here is an implementation that you can copy in your file SPrefs.tcl : proc S::sourceCurrentScript {} { global SmodeVars mode set f [win::Current] if {$f eq ""} { return } if {$mode ne "S"} { alertnote "Current file is not in S+/R mode." } if {[winDirty] && [askyesno \ "Do you want to save the file before sending it to $SmodeVars(rApp)?"]} { save } if {$SmodeVars(stayInAlpha)} { app::launchBack [S::bundleID] } else { app::launchFore [S::bundleID] } xserv::invoke sourceRFile -file $f return } binding create -tag S {coz 'T'} S::sourceCurrentScript The last line defines a ctrl-opt-cmd T binding to this new proc called S::sourceCurrentScript. After you copy this in your file SPrefs.tcl, then quit Alpha and relaunch it: now you can just press ctrl-opt-cmd T to get your current file sent to R.app as a source command. Whether this new implementation should become the default for the Process Current File command in Alpha's R menu may be debated. I have no objection: the current behaviour could be handled by the Process Selection command when the selection is ... empty (!). ________________________________ [tickets:#252]<https://sourceforge.net/p/alphacocoa/tickets/252/> S+/R mode - Process Current File (Cmd^T) fails Status: open Labels: S+/R mode Created: Thu May 13, 2021 09:21 AM UTC by Fischlin Andreas Last Updated: Thu May 13, 2021 11:46 AM UTC Owner: nobody The essential menu command "S+/R -> Process Current File" of the S+/R mode fails. It does no longer source, i.e. it does not process the current file. I am sorry to lack the time right now to figure out why that is. Perhaps it is the R GUI app which has changed, but then Alpha might need to adjust what Apple Event it sends to R. In any case, INMHO the mode is crippled by this problem. Does anyone perhaps know a solution to this problem? I would greatly appreciate getting any hints on how to circumvent this if bigger modifications would be required to the mode as this is rather at the moment urgent for me. Thanks. Alpha 9.2.2 (10145) -- R 3.6.1 GUI 1.70 El Capitan build -- OS X 10.14.6 (Mojave) ________________________________ Sent from sourceforge.net<http://sourceforge.net> because you indicated interest in https://sourceforge.net/p/alphacocoa/tickets/252/ To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ --- ** [tickets:#252] S+/R mode - Process Current File (Cmd^T) fails** **Status:** open **Labels:** S+/R mode **Created:** Thu May 13, 2021 09:21 AM UTC by Fischlin Andreas **Last Updated:** Thu May 13, 2021 02:23 PM UTC **Owner:** nobody The essential menu command "S+/R -> Process Current File" of the S+/R mode fails. It does no longer source, i.e. it does not process the current file. I am sorry to lack the time right now to figure out why that is. Perhaps it is the R GUI app which has changed, but then Alpha might need to adjust what Apple Event it sends to R. In any case, INMHO the mode is crippled by this problem. Does anyone perhaps know a solution to this problem? I would greatly appreciate getting any hints on how to circumvent this if bigger modifications would be required to the mode as this is rather at the moment urgent for me. Thanks. Alpha 9.2.2 (10145) -- R 3.6.1 GUI 1.70 El Capitan build -- OS X 10.14.6 (Mojave) --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |