[R] package: RWinEdt question

Mari mari_c1729 at yahoo.com
Sun Jul 6 23:21:09 CEST 2014


Thank you for your quick reply. Except for the "instances" issue, RWinEdt seems to be
working well with WinEdt 8.2 so I'll continue to use it. (I can't customize keyboard shortcuts in
RStudio or some of the other often mentioned editors).


I looked at the code for "startWinEdt" and I can see where the difference in the versions occcur:


function (InstallRoot, ApplData, WinEdtVersion, args = NULL) 
{
    if (WinEdtVersion < 6) {
        shell(paste("\"\"", InstallRoot, "\\WinEdt.exe\" -C=\"R-WinEdt\" -E=", 
            shQuote(normalizePath(file.path(ApplData, "R.ini"))), 
            "\"", sep = ""), wait = FALSE)
    }
    else {
        shell(paste("\"\"", InstallRoot, "\\WinEdt.exe\"\"", 
            if (!is.null(args)) 
                args, sep = ""), wait = FALSE)
    }
}


-Mari




On Sunday, July 6, 2014 3:44 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
On 06/07/2014, 4:35 PM, Uwe Ligges wrote:
> The RWinEdt package does not support WinEdt 8.x yet.
> 
> Versions 5.x and 6.x shoudl be supported. Not sure about 7.x.
> Unfortunately, the trick to get it working changes with each version of 
> WinEdt these days ... Well, I may be too bad in WinEdt macro programming...
> I do notn have the new versions available, hence hard time to get the 
> plugin running without a WinEdt version to test it ...

I gave up on trying to support WinEdt with my patchDVI package because
of these constant incompatible changes.  Nowadays I recommend that my
students use RStudio and/or TeXWorks.

Duncan Murdoch

> 
> Best,
> Uwe Ligges
> 
> 
> On 06.07.2014 19:34, Mari wrote:
>> I just upgraded WinEdt from 5.2 to 8.2. With the older version, invoking library(RWinEdt) started a new instance of WinEdt identified by "R-WinEdt" as the title. This way, I was able to separate R work from other editing work with two instances of WinEdt running.
>>
>>
>> However, with the newer version of WinEdt, this no longer seems to be the case. If I already have WinEdt running for editing, say tex files, typing library(RWinEdt) in R does not start a new instance of WinEdt.
>> I guess what I need is to figure out how to supply the argument -c="R-WinEdt" to the WinEdt.exe command when in R.
>>
>>
>> Thank you for any suggestions.
>>
>> -Mari
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.



>>
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list