[rkward-users] Saving Console?

Agustin Lobo alobolistas at gmail.com
Thu Nov 26 15:20:46 UTC 2009

Thanks for the work around. One more point:
This is the type of script I use:
#Get ready
#1. Vector (in R, SpatialPolygonsDataFrame) to raster conversion
#We import the limit of the Parc to set the region:
midsn <- 
PNMlimit <- readOGR(midsn, layer="AmbitPlaEspecial")
visitCODEQP <- raster(extent(PNMlimit))

I do as you say: copy and paste to the console, run the whole thing, and copy and
paste from the console to the editor. Doing as you say, I get the text
(now with "> #") grey, and the R output, green, which is good. Nevertheles, in 
the editor, in order to do not get
the "> # " for the text in the html, I just replace the "> #" by nothing. The 
problem is
that the text becomes green as the R output (i.e., the output to 
dim(visitCODEQP) is green also), which is a bit confusing in the
html page.

Is there any way I could keep the grey color of the text after
I delete the "> #" ?

I know it's not too hard editing this manually, but I'm trying to get a method 
as automatic as possible. Maybe the solution is making the html with the "> #"
and then use an html editor to delete all the "> #" and keeping the color.

Thanks a lot for your help.


Thomas Friedrichsmeier wrote:
> Hi,
> On Thursday 26 November 2009, Agustin Lobo wrote:
>> I know R2HTML (a bit), but actually wondered if there is some kind
>> of tool like R2HTML embedded in rkward.
> in fact, RKWard does make use of R2HTML to generate the rk_out.html. But no, 
> we just don't offer the input-recording, yet. Care to open a feature request 
> for this 
> (http://sourceforge.net/tracker/?atid=459010&group_id=50231&func=browse)? 
> That's the second-best way to make sure, this will be added sooner or later 
> (the best way is to provide a patch, if you know how to program).
> Here's a temporary hack:
> 1) Do your work in the console.
> 2) Select all and Edit->Copy selection literally. Paste into a script editor.
> 3) Select Edit->Tools Move->Highlighting->Scripts->RKWard Output to get the 
> console highlighting.
> 4) Now use File->Export as HTML.
> Regards
> Thomas
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ------------------------------------------------------------------------
> _______________________________________________
> RKWard-users mailing list
> RKWard-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rkward-users

More information about the Rkward-users mailing list