Flextable not showing in viewer with v. 2.2.0 · Issue #770 · REditorSupport/vscode-R · GitHub
Skip to content

Flextable not showing in viewer with v. 2.2.0 #770

Description

@nsandau

First of all, thank you so much for this excellent extension!

I think I might have discovered a regression when using the flextable package with vscode-R v 2.2.0.

Describe the bug
I use the flextable package for outputting tables in rmd documents.
With previous versions of vscode-R when printing the flextable object the viewer would show the table.
However, with version v. 2.2.0 the viewer just shows a blank canvas.
When rolling back to 2.1.0 it works as expected.
I have tried printing a table with the gtsummary package and it still works with 2.2.0.

To Reproduce

flextable shows up blank in viewer:
flextable::flextable(as.data.frame(letters))

gtsummary table still works:
gtsummary::tbl_summary(as.data.frame(letters[1:5]))

but when converting to flextable it shows up blank again:
gtsummary::as_flex_table(gtsummary::tbl_summary(as.data.frame(letters[1:5])))

Do you want to fix by self? (We hope your help!)

Want to? Yes. Able to? Sadly no.

Expected behavior
Flextable tables showing in viewer as in previous versions.

Screenshots
image

Environment (please complete the following information):

  • OS: pop_os 21.04
  • VSCode Version: 1.60.0
  • R Version: 4.1.1
  • vscode-R version: 2.2.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions