Undocumented error cannot coerce 'function' to a data.frame

Hello

$datashield.assign.table(…)

$datashield.errors

as.data.frame.default(x, stringsAsFactors = FALSE) : \n cannot coerce class ‘“function”’ to a data.frame\n"

I wanted to log this, this function/data.frame error occurs on Tabbles/Views of length 0.

If you get this error, there is probably an upload (Table) or dictionary (View) error.

Hope this helps

Isn’t it because you assigned the table to the symbol D ? which is a function from the stats package…

datashield.assign.table(
  conns,
  symbol="D",
  table="Project.Table",
  #id.name="id"
  id.name="ID"
)

It turned out that Project.Table was an empty file (with variables but no entities). And that’s not clear from the error message unless I am missing something here.