xtableExport {RcmdrPlugin.Export}R Documentation

Export objects using xtable

Description

Rcmdr menu interface to export objects to LaTeX or HTML code.

Usage

xtableExport()

Details

The graphcal interface to xtable is, naturally, limited to exporting objects that xtable itself can convert. The plug-in, however, attempts to work around and – in certain cases – prior to exporting it converts the object to a data type that xtable can handle. In other cases, the plugin does not pass to xtable the object itself, but the relevant structure element(s) (say, .numSummary$table). Objects of certain classes are simply ignored and are not displayed in the dialog.

Objects of the following classes are ignored: logical, function, help_files_with_topic, packageIQR, trellis, xtable, latex, htest, stem.leaf, multinom.

Objects of the following classes receive "special treatment": numSummary, summary.multinom, polr, summary.polr, reliability, confint.glht, factanal, outlier.test, array, integer, character, numeric, rcorr, by.

All other objects are passed directly to xtable.

If the object retrieved is on the ignored list, initializing the dialog will fail "silently", display a warning message and attempt re-initialize. If the stack is empty, or contains only objects that cannot be exported, initializing the dialog will fail "silently" and display an error message.

The digits optional argument defaults to "2". In the graphical dialog, the user must specify a digit (say, "3") or a list of length equal to the number of columns of the resulting table (say, "0,0,3,3,3" for a 5 column table, as opposed to the more R-intuitive "c(0,0,3,3,3)" list).

The size printing option (to the best of my knowledge) should be one of the following LaTeX sizes: tiny, small, big, huge. For normal size leave the field blank.

The file printing option lets you specify an output file. The user needs to input the name of the file only; the plug-in will add the extension automatically depending on the chosen 'Export format'. The behaviour is intended to prevent the user from making carelesss errors, such as exporting to LaTeX code but into a *.html file. This will also prevent from outputing on top of files different from *.tex or *.html.

The append printing option is checked by default. This more conservative approach is due to the default behaviour of xtable to overwrite output files; it will be easier to recover files in case of a name clash. Even if checked, the option will be ignored if the file input field is empty.

Value

NULL

Author(s)

Liviu Andronic landronimirc@gmail.com

See Also

xtable


[Package RcmdrPlugin.Export version 0.2-1 Index]