[R] R2HTML output shows NULL
Jeff Newmiller
jdnewmil at dcn.davis.CA.us
Sat Apr 28 00:52:59 CEST 2012
The key rule on this list is to post R code. And HTML is text in its raw form, so posting HTML source in a text message works fine, especially if it is trimmed to just show context. It is when the message itself is sent with MIME coding set to HTML that the formatting gets messed up and expectations of the author fall apart; e.g. that things like colored or bolded or large text will be visible to the readers.
I too occasionally see problems described that look like issues i have seen before, but often enough they turn out to be different and seeing code would have tipped me off. The most important reason to post examples is that the process of preparing a small example is often enough to allow the OP to figure out the answer themselves without even posting at all, and conserving ones chits for tough problems shows respect for the people on the list whose time you are requesting.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
Greg Snow <538280 at gmail.com> wrote:
>Jeff, there are also many times that people are told not to post HTML,
>so this case would be a bit of a Catch 22. Also some of us (well me
>at least, I expect others have as well) have experienced this already
>and fully understand what is being discussed without needing an
>example (and for this case I don't know that those who don't already
>understand what she is saying would benefit much from the example
>without the output).
>
>Erin,
>
>I have seen the same thing (as well as all the output from the hist
>function being printed and other things that are usually invisible)
>and have not found a way to suppress/hide the usually invisible
>output.
>
>An alternative is the txtStart and friends functions in the
>TeachingDemos package (which were inspired by, but not as fancy as,
>the R2HTML package). Like R2HTML those functions will copy your
>session to a file (currently plain text, enhanced text (can be post
>processed with the enscript program to provide color and embedded
>graphics), or MS Word documents (via the R2wd package), .rtf files
>(via the rtf package) are planned). These functions by default do not
>include output that is returned invisibly.
>
>On Fri, Apr 27, 2012 at 2:06 PM, Jeff Newmiller
><jdnewmil at dcn.davis.ca.us> wrote:
>> Haven't you been asked to provide an example of code that illustrates
>your problem often enough by now to anticipate the request in your
>first post?
>>
>---------------------------------------------------------------------------
>> Jeff Newmiller The ..... ..... Go
>Live...
>> DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live
>Go...
>> Live: OO#.. Dead: OO#..
> Playing
>> Research Engineer (Solar/Batteries O.O#. #.O#. with
>> /Software/Embedded Controllers) .OO#. .OO#.
> rocks...1k
>>
>---------------------------------------------------------------------------
>> Sent from my phone. Please excuse my brevity.
>>
>> Erin Hodgess <erinm.hodgess at gmail.com> wrote:
>>
>>>Hello R People:
>>>
>>>I am using the R2HTML program for the first time (actually
>yesterday),
>>>and I have a question, please:
>>>
>>>I am getting NULL in the webpage in several places, presumably where
>>>NULL would appear on the screen.
>>>
>>>How would I go about fixing that, please?
>>>
>>>Thanks,
>>>Erin
>>>
>>>
>>>--
>>>Erin Hodgess
>>>Associate Professor
>>>Department of Computer and Mathematical Sciences
>>>University of Houston - Downtown
>>>mailto: erinm.hodgess at gmail.com
>>>
>>>______________________________________________
>>>R-help at r-project.org mailing list
>>>https://stat.ethz.ch/mailman/listinfo/r-help
>>>PLEASE do read the posting guide
>>>http://www.R-project.org/posting-guide.html
>>>and provide commented, minimal, self-contained, reproducible code.
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
>
>
>--
>Gregory (Greg) L. Snow Ph.D.
>538280 at gmail.com
More information about the R-help
mailing list