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
"{}" causes ic()
to break
#26
Comments
Some messing about with escaping glue code has been necessary. See GitHub issue for details of the problem. #26
@notPlancha really appreciate you taking the time to flag this, and to submit the PR. As mentioned in my comment on #27 I don't want to apply a blanket find-and-replace, so I've gone for "try it, if you hit an error escape the curlies". I've also added a couple of unit tests based on the examples you provided. Would you be interested in doing a bit of testing? If so you can If I don't hear from you I'll look to do a release in the next week or so. |
looks good to me |
@notPlancha just released v0.2.2 to CRAN with this fix. Any further issues let me know. Thanks again! |
Because of
glue
(andcli
), any string that includes the brackets will break, which I feel it's not intentional, since I think I'd want the contents of the variable I'm seeing (similar to print). I first noticed it when working with json.I don't think this is intended, and if it is I think there should be a note about this (or an option to not use it).
Depending on how ic.output.function is implemented, the reimplementation could be fixed. Until then, I suggest adding to
print.R
:I can create a pull request if you think the suggestion is fine (and enough)
edit: just remembered other types that are not
character
so what I was recommending is not enoughThe text was updated successfully, but these errors were encountered: