automatic start of RWinEdt

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

automatic start of RWinEdt

Stefan Semmeling

"stefan semmelring" <[hidden email]> 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
>  
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: automatic start of RWinEdt

Wincent
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 <[hidden email]>:

>
> "stefan semmelring" <[hidden email]> 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
> >
> >
>
> ______________________________________________
> [hidden email] 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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: automatic start of RWinEdt

Uwe Ligges
In reply to this post by Stefan Semmeling
stefan semmelring wrote:

> "stefan semmelring" <[hidden email]> 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)



For example add the line
    library(RWinEdt)
to your Rprofile file. For details see ?Startup.

Uwe Ligges



>>Thank You
>>
>>
>>
>>Stefan
>>
>>
>
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html