crubba / htmltab

An R package for assembling data frames from HTML tables (fka htmltable)
Other
26 stars 7 forks source link

body parameter in CRAN package #15

Open Stiggedy opened 7 years ago

Stiggedy commented 7 years ago

in the released package on CRAN the body parameter in the htmltab function has no effect:

> htmltab::htmltab
function (doc, which = NULL, header = NULL, headerFun = function(node) XML::xmlValue(node), 
headerSep = " >> ", body = NULL, bodyFun = function(node) XML::xmlValue(node), 
complementary = TRUE, fillNA = NA, rm_superscript = TRUE, 
rm_escape = " ", rm_footnotes = TRUE, rm_nodata_cols = TRUE, 
rm_nodata_rows = TRUE, rm_invisible = TRUE, rm_whitespace = TRUE, 
colNames = NULL, ...) 
{
header <- deparse(substitute(header), width.cutoff = 500L)

body <- deparse(substitute(NULL), width.cutoff = 500L)

ev_header <- eval_header(arg = header)
ev_body <- eval_body(arg = body)

When installing from github this issue is not present.

gwezerek commented 7 years ago

Installing from github also solved this issue for me.

burgerga commented 4 years ago

It appears changes in the package are no longer published to github :( please see my fork which includes the 0.7.1.1 source code, and has a fix for the body problem: https://github.com/burgerga/htmltab