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

Remove stringi dependency (fixes #204) #206

Merged
merged 1 commit into from Feb 6, 2019
Merged

Conversation

mllg
Copy link
Sponsor Member

@mllg mllg commented Feb 6, 2019

No description provided.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 633

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.415%

Totals Coverage Status
Change from base Build 631: 0.0%
Covered Lines: 437
Relevant Lines: 458

💛 - Coveralls

xs = split(xs, set_ids) # partition xs into parts wrt to setids
for (s in private$.sets) {
# retrieve sublist for each set, then assign it in set (after removing prefix)
pv = xs[[s$set_id]]
if (is.null(pv))
pv = list()
names(pv) = stri_replace_first_fixed(names(pv), paste0(s$set_id, "."), "")
names(pv) = sub(sprintf("^%s.", s$set_id), "", names(pv))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd probably need to escape regex characters from set_id like this. Maybe use subsr?

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Special chars are allowed in an id? 😟

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.

None yet

4 participants