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

CLEANUP: language metadata or attribute? #37

Open
HenrikBengtsson opened this issue Mar 7, 2020 · 0 comments
Open

CLEANUP: language metadata or attribute? #37

HenrikBengtsson opened this issue Mar 7, 2020 · 0 comments

Comments

@HenrikBengtsson
Copy link
Owner

Right now language appears as both an attribute and a metadata tag. Should probably be one or the other;

$ grep -F '"language"' R/*.R
R/rcode.R:  language <- getAttribute(object, "language", default="R")
R/RspDirective.R:    this <- setAttribute(this, "language", lang)
R/RspDocument.R:        lang <- getAttribute(item, "language")
R/RspDocument.R:      language <- getAttribute(item, "language", default=NA_character_)
R/RspDocument.R:      for (name in c("type", "escape", "language")) {
R/RspDocument.toR.R:    language <- getMetadata(object, "language", default="R")
R/RspString.R:  s <- c(s, sprintf("Language: %s", getAttribute(x, "language", NA)))
R/rstring.R:#  language <- getAttribute(object, "language", default="R")
R/rstring.R:  language <- getMetadata(object, "language", default="R")
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

No branches or pull requests

1 participant