maelstrom-research / madshapR

2 stars 0 forks source link

dataset_visualize() variable name has added "{.unnumbered #var64}" at the end #62

Closed zchenmr closed 6 months ago

zchenmr commented 9 months ago

In the report generated by dataset_visualize(), one of the variables has an extra part added to the name with "{.unnumbered #var64}". It's unclear where this problem is coming from.

Input code format:

dataset = data_dict_apply(dataset, data_dict = dd)

dataset_visualize(
  dataset = dataset,
  bookdown_path = "report_path")

Entry in data dictionary: image

Report sidebar: image

Variable page: image

GuiFabre commented 8 months ago

the problem comes from the fact that in Rmarkdown, double underscore before and after a word is evaluatated as bold possibly your variable is Datecoding which is written in the pipeline Date coding and generate the error.

Is your variable contains double __ ?

zchenmr commented 8 months ago

Yes actually, the variable name is Datecoding with double . Is there a way to avoid this issue without renaming the variable?

GuiFabre commented 8 months ago

I can search for a solution. But I’m pretty sure there will!

GuiFabre commented 7 months ago

The bug reproduced image

GuiFabre commented 7 months ago

corrected image

zchenmr commented 7 months ago

This issue is no longer appearing with the newest versions of the packages. Thanks!

image image