[BlindRUG] How about making WriteR editor Windows executable (*.exe) file?
Jooyoung
jooyoung at psu.edu
Mon Jan 22 19:14:12 UTC 2018
Dear Henrik,
Thank you so much for your valuable input.
I did not even know I could employ batch file for the value of editor parameter.
I can try write my own batch file to call WriteR.pyw using python; however, for the sake of general use of accessible Rmd editor for those who do not have python 2.7 and wxPython module installed on their machine, I asked Dr. Godfrey to package the python script as an complete excutable file.
Again, I really appreciate your insightful feedback Henrik, I learned something really useful!
Sincerely,
JooYoung
-----Original Message-----
From: Henrik Bengtsson [mailto:henrik.bengtsson at gmail.com]
Sent: Monday, January 22, 2018 11:56 AM
To: Blind R Users Group <blindrug at nfbnet.org>
Cc: Jooyoung <jooyoung at psu.edu>
Subject: Re: [BlindRUG] How about making WriteR editor Windows executable (*.exe) file?
Without knowing the background, I'd just wanna share that you could specify a BAT file as the 'editor' option and have that BAT file to in turn call your favourite software.
For instance, consider C:/Users/alice/myScript.bat with content:
@echo off
notepad %*
Then you can use:
> options(editor = "C:/Users/hb/myEditor.bat")
With this, the following will open Notepad with buffer "1:3":
> x <- 1:3
> edit(x)
Also, the 'editor' option can be an R function, meaning you could alternatively use R code to properly launch your external software.
/Henrik
On Mon, Jan 22, 2018 at 7:51 AM, Jooyoung via BlindRUG <blindrug at nfbnet.org> wrote:
> Dear Dr. Godfrey,
>
>
>
> I hope this email finds you well.
>
>
>
> I was wondering if there would be any way we could make "WriteR"
> editor written by Python 2.x wxPython into a Windows' executable file
> using "py2exe" library. The tutorial can be found at
> http://www.py2exe.org/index.cgi/Tutorial
>
>
>
> The reason why I propose this request is that it is hard to have
> WriteR editor as a default editor in R without making it Windows executable file.
>
>
>
> If we can have WriteR as an exe file, we could make the WriteR as a
> default editor using the following line:
>
>
>
> options(editor = "C:/{path}/WriteR.exe")
>
>
>
> For now, I am using Notepad PlusPlus as my default editor in R console
> so that any file.edit() function can import my target file in NPP.
>
> Please consider this request.
>
>
>
> Sincerely,
>
>
>
> JooYoung
>
>
> _______________________________________________
> BlindRUG mailing list
> BlindRUG at nfbnet.org
> http://nfbnet.org/mailman/listinfo/blindrug_nfbnet.org
> To unsubscribe, change your list options or get your account info for
> BlindRUG:
> http://nfbnet.org/mailman/options/blindrug_nfbnet.org/henrik.bengtsson
> %40gmail.com
> The list archive can be viewed at:
> http://www.nfbnet.org/pipermail/blindrug_nfbnet.org
> More information and useful links about using R as a blind person can
> be obtained at:
> http://R-Resources.massey.ac.nz
>
> Look for help using R commands by reading the accessible e-book "Let's
> Use R Now" compiled by Jonathan Godfrey at:
> http://R-Resources.massey.ac.nz/lurn/front.html
>
More information about the BlindRUG
mailing list