atorus-research / xportr

Tools to build CDISC compliant data sets and check for CDISC compliance.

Home Page:https://atorus-research.github.io/xportr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: add arg to allow user choose nchar (type = 'bytes')

siye6 opened this issue · comments

Feature Idea

as per SAS help doc, the XPT v5 only allow Character variables can have lengths up to 200 bytes and Variable labels can be up to 40 characters, if there is a special character in variables / label, the actual length of bytes and characters could be different when encoding is utf8. (e.g. generate XPT files with variable length > 200 and label length > 40).

the default nchar used here, so not able to count the length of bytes.

if (nchar(label) > 40) {

Relevant Input

No response

Relevant Output

No response

Reproducible Example/Pseudo Code

No response

add an example in #91