[Rd] ASCII art in function documentation?

Rainer M Krug Rainer at krugs.de
Thu Sep 5 17:12:03 CEST 2013


"Brian G. Peterson" <brian at braverock.com> writes:

> On 09/05/2013 09:10 AM, Rainer M Krug wrote:
>>   want to include ascii art in a function documentation which should
>> look as follow:
>>
>> ,----
>> | +------+------+------+
>> | | 1/16 | 1/16 | 1/16 |
>> | +------+------+------+
>> | | 1/16 | 8/16 | 1/16 |
>> | +------+------+------+
>> | | 1/16 | 1/16 | 1/16 |
>> | +------+------+------+
>> `----
>>
>>
>> to keep the monospaced font even in html, I decided to use \code{}:
>
> Wouldn't it be best to use the relatively new \figure markup with
> alternate text?
>
> http://cran.r-project.org/doc/manuals/R-exts.html#Figures

Thanks - mus't have overlooked it.

This would definitely work, but in this case I think ASCII art would be
the better solution.

Thanks,

Rainer

>
> Regards,
>
> Brian
<#secure method=pgpmime mode=sign>

-- 
Rainer M. Krug

email: RMKrug<at>gmail<dot>com



More information about the R-devel mailing list