render_str: Render str() output in html with style

View source: R/str_render.R

render_strR Documentation

Render str() output in html with style

Description

If the output of str() is long, user can easily get lost in scrolling. This function convert output into html with tag classes and render it with style. You can customize the style by experimenting with chrome/firefox developer tools first, then save to css. The css is located in system.file("css", "str_render.css", package = "mischelper")

Usage

render_str(obj)

Arguments

obj

the object/variable to be inspected

Details

By default a browser window will be opened because it is intended for long output. The info label and the name of input object are added for clarity. Since they are not part of original str() output, (info) are used.


dracodoc/mischelper documentation built on March 25, 2022, 4:38 a.m.