[R] automatic start of RWinEdt

ronggui ronggui.huang at gmail.com
Tue Jan 10 05:47:34 CET 2006


the readme file tells what you should do:


    - In R use something like (for example in your .Rprofile):
       options(editor="\"c:/program files/winedt team/winedt/winedt\"
-c=\"R-WinEdt-edit\" -e=r.ini -V")
       options(pager="\"c:/program files/winedt team/winedt/winedt\"
-C=\"R-WinEdt\" -e=r.ini -V")


    Used WinEdt parameters (Remark: There is a difference between -c and -C !):
        -c="name": New instance of WinEdt called "name" will be started.
        -C="name": If an instance "name" of WinEdt is already running,
it will be used.
                   So you can run WinEdt as LaTeX and R editor at the same time.
        -e="name": Using "name" as initialization-file.
        -V       : Running in "virgin"-mode

    Examples:

    ###### Recommended procedure:
    ## Open WinEdt with something like:
     "c:\program files\winedt team\winedt\winedt" -C="R-WinEdt" -e=r.ini
    ## i.e. ideally the shortcut you have already created.
    ##
    ## Then create a new document and write an R function.
    ## Click on the symbol "R source" or press ALT+S.
    ## You will be asked to specify a filename (e.g. "R-prog1.R").
    ## If RGui is running, it will be focussed and source(.) will be called.

    ######
     options(pager="\"c:/program files/winedt team/winedt/winedt\"
-C=\"R-WinEdt\" -e=r.ini -V")
     file.show(".Rhistory")
    ## Mark some lines, click the "R paste" button or use Alt+P as shortcut:
    ## Marked lines will be executed in RGui.

    ######
    ## The following way to edit function is possible, but *not* recommended:
     options(editor="\"c:/program files/winedt team/winedt/winedt\"
-c=\"R-WinEdt-edit\" -e=r.ini -V")
     my.legend <- legend
     fix(my.legend)

2006/1/10, stefan semmelring <trittihn at web.de>:
>
> "stefan semmelring" <trittihn at web.de> schrieb am 09.01.06 21:31:01:
> >
> > Hallo,
> >
> >
> >
> > IÂ´m trying to find out how I can start WinEdt always directly when R is started.
> >
> > Does anybody know how to do so? I tried to find it out by myself but had no fortune.
> >
> > Maybe you have to compile (?) a certain file. (I am usind R in the latest version on Win XP)
> >
> > Thank You
> >
> >
> >
> > Stefan
> >
> >
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>


--
é»„è£è´µ
Deparment of Sociology
Fudan University




More information about the R-help mailing list