[R-wiki] copy that chunk of code

Philippe Grosjean phgrosjean at sciviews.org
Sat Feb 25 17:38:39 CET 2006


In fact, you can just copy and paste, and for console transcripts, you 
can use copy, and then paste commands only, or similar functions (I know 
there is one in RGui, but what about the others UIs?)

I have a plan to support two export functions for Wiki pages. One is to 
export the executable R code only, and the second one is to transfor the 
whole wiki page into something directly sourceable in R (that is, all 
lines not corresponding to R code is simply prepended with '#').

That will be by far a better solution: export the R code of the whole 
wiki page, open it in your favorite code editor and run it from there.
Best,

Philippe

Gabor Grothendieck wrote:
> If there is javascript on the web page that can access the
> clipboard would there be annoying security blockages by
> the local browser depending on its security setting?  If so,
> I think I would prefer just selecting and copying the code.
> 
> On 2/24/06, Romain Francois <francoisromain at free.fr> wrote:
> 
>>Hi all,
>>
>>Do you think it would be possible/interesting to have a little button on
>>top/bottom of each code chunk that would allow the user to select/copy
>>the code to execute it faster in his R session.
>>
>>Something like that :
>>http://www.dynamicdrive.com/dynamicindex7/basiccalendar.htm
>>
>>Romain
>>
>>--
>>visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
>>Discover the R Movies Gallery : http://addictedtor.free.fr/movies
>>+---------------------------------------------------------------+
>>| Romain FRANCOIS - http://francoisromain.free.fr               |
>>| Doctorant INRIA Futurs / EDF                                  |
>>+---------------------------------------------------------------+
>>
>>_______________________________________________
>>R-sig-wiki mailing list
>>R-sig-wiki at r-project.org
>>https://stat.ethz.ch/mailman/listinfo/r-sig-wiki
>>
> 
> 
> _______________________________________________
> R-sig-wiki mailing list
> R-sig-wiki at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-wiki
> 
>



More information about the R-sig-wiki mailing list