Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread P. Roberto Bakker
Dear Don, Thank you for your information. Bw Roberto 2018-04-25 23:13 GMT+02:00 MacQueen, Don : > Try putting this >options(echo=TRUE) > at the beginning of your script > > See ?source for a clue > > -Don > > -- > Don MacQueen > Lawrence Livermore National Laboratory >

Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread MacQueen, Don
Try putting this options(echo=TRUE) at the beginning of your script See ?source for a clue -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 4/24/18, 2:23 AM, "R-help on behalf of P. Roberto

Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread P. Roberto Bakker
Hi Greg, Thank you for all information. Bw Roberto Op di 24 apr. 2018 21:42 schreef Greg Snow <538...@gmail.com>: > Look at the spin and stitch functions in the knitr package if you want > to process an existing script into an output that mixes the code run > with the output. > > Look at

Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread P. Roberto Bakker
Hi Thierry, Thank you for your information. Bw Roberto Op di 24 apr. 2018 12:01 schreef Thierry Onkelinx : > Dear Roberto, > > The easiest way IMHO is to convert your script into an R markdown > document. See https://rmarkdown.rstudio.com/ > > Best regards, > > ir.

Re: [R] Copy text from Script syntax into .txt

2018-04-24 Thread Greg Snow
Look at the spin and stitch functions in the knitr package if you want to process an existing script into an output that mixes the code run with the output. Look at the txtStart and related functions in the TeachingDemos package if you want the code and output saved in a file from a session where

Re: [R] Copy text from Script syntax into .txt

2018-04-24 Thread Thierry Onkelinx
Dear Roberto, The easiest way IMHO is to convert your script into an R markdown document. See https://rmarkdown.rstudio.com/ Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR

[R] Copy text from Script syntax into .txt

2018-04-24 Thread P. Roberto Bakker
Hi everybody, How can I get text from RScript (e.g. syntax, reminder) into the result text. Sink() does not do that - I only read the results and therefore I have to 'guess' which syntax was used where - reminders I wrote are lost. Bw and thank you in advance, Roberto [[alternative