Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading \" in free text variables #262

Merged
merged 16 commits into from
May 16, 2024

Conversation

DrEspresso
Copy link
Contributor

Bug fix to issues #220 and #261 :

  • read_export_options() now also reads enclosure character from header
  • .print.secuTrialoptions() now also prints enclosure character. Quote and Tabulator are now printed as '\"' and '\t' rather than '"' and ' '.
  • read_export_table() now uses readr::read_delim() with options escape_backslash = TRUE and quote = export_options$quote

Other changes:

  • warning for ISO-8859 encoding moved from read_export_table() to read_secuTrial_raw() (one warning per export file instead of several warnings for each table)
  • read_export_options() now reads only the first 10 lines to find the encoding. Reading all lines would fail if the export options were ISO-8859 encoded and contained 'problematic' characaters, e.g. in center names.
  • Removed encoding option in plot_recruitment(): Not needed here, as centres are read with correct encoding in read_secuTrial_raw() and stored in the secuTrialR object.

@aghaynes
Copy link
Member

Wow... great job @DrEspresso! Thanks a lot!

@aghaynes
Copy link
Member

despite failure on ubuntu, merging...

@aghaynes aghaynes merged commit a6b38f9 into SwissClinicalTrialOrganisation:master May 16, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants