#4 htmlhelp = TRUE and run current line

closed-fixed
nobody
None
5
2009-11-08
2009-11-08
No

Not really a bug, but htmlhelp = TRUE should be replaced by help_type = "html"

(translated from french):

Warning :
In help("sum", package = NULL) :
htmlhelp = TRUE is obsolete : use help_type = "html"

======

Another minor thing (again, not a bug), and maybe this is just me... But say I start up a file, and write

test <- 3

in the first line, and want to run this line straight away. If there's not an extra carriage return after the line, it won't be evaluated directly. This means I have to add a carriage return, return to the line, then run the current line. Could this be modified so that the current line can be directly evaluated in the R console even if there's no extra carriage return?

Idem for run selection. Unless there's an extra carriage return at the end, the last line won't be evaluated.

Thanks for this great plug-in! It's simple enough to make it fast and light, but it has everything that an experienced R user needs.

Discussion

  • Dan Dediu

    Dan Dediu - 2009-11-08

    Hi Etienne,

    I'm glad you find it useful :)

    Concerning you first comment (htmlhelp = TRUE), I cannot reproduce your warning on my current work machine (Xubuntu 9.10, stock R 2.9.2) nor on an older Hardy (stock R 2.6.2). What R version & platform are you using?

    I could easily check the current line for a CR at the end and add one if required, but for the selection I'm not so sure, because someone *might* want to simply pipe a (sequence of) word(s) to R (equivalent to copy & paste) without explicitly wanting to run it (I never do it, though :)). If this scenario is not really used, then I can also check for a CR on the last line and add it if necessary -- what do you think?

    Best,
    Dan

     
  • Etienne Laliberté

    Thanks Dan,

    I'm running Ubuntu 9.10 and R 2.10. This warning message must be a new addition in R 2.10.

    As for the CR's, I'd definitely vote for adding them for BOTH current line and current selection. I cannot think why someone would want to run a current selection (this is what the option is called after all!) in R without actually running it! It they did want to do such a thing, then they can simply copy-paste it via Ctrl-C and Ctrl-V.

    Cheers

    Etienne

     
  • Dan Dediu

    Dan Dediu - 2009-11-08

    Hi Etienne,

    indeed, I just checked and it seems that in R 2.10 the HTML system was radically changed (they now seem to have a HTTP demon generating the pages on-the-fly. Citing from the release notes for 2.10: "HTML help is now generated dynamically using an HTTP server running in the R process and listening on the loopback interface."). I'll change this setting when 2.10 will become more widely used as I am not sure the new option works on older systems (seems to work on my 2.6 on Hardy, but this is probably not old enough, I guess :) )

    Concerning the current line & selection suggestions, they are fixed in the new 0.6.3, just uploaded :) Please, check them and let me know if they are or (or any other bugs/suggestions you might have).

    Best,
    Dan

     
  • Dan Dediu

    Dan Dediu - 2009-11-08
    • status: open --> closed-fixed