mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-15 04:18:05 +00:00
loadRPackageConfig read export(), exportClasses(), exportMethods(), S3method() and exportPattern() line by line, so any wrapped directive was silently skipped. Read them from the whole NAMESPACE text with the tokeniser already used for importFrom(): the tokeniser is split into a shared scanRNamespaceDirectives, and parseRNamespaceExports is a second consumer. Wrapped, quoted, backticked, commented and CRLF directives now give the same result as their single-line form; S3method() accepts its optional third argument and exportPattern() accepts several patterns. exportPattern() strings are now R-unescaped before compilation, so the R string "\\." becomes the regex \. rather than \\. (unescapeRString handles \\, \", \', \n, \t, \r, \a, \b, \f, \v and \x/\u/\U code points). loadRPackageConfig changes only at the call site; no parse-cache output changes. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| helpers | ||
| integration | ||
| unit | ||
| utils | ||