-
Notifications
You must be signed in to change notification settings - Fork 65
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
How to type curly bracket { in the glue content #127
Comments
Temporally, library(glue)
library(rebus)
library(tidyverse)
open <- '{'
glue("@online{open}Li2019,") %>%
cat
#> @online{Li2019, Created on 2019-02-06 by the reprex package (v0.2.1) I don't think it is an effcient way. |
You can change the opening delimiter by glue::glue("@online{Li2019,", .open = "{{")
#> @online{Li2019, Created on 2019-02-06 by the reprex package (v0.2.1.9000) |
@yutannihilation Hi, thanks for your quick reply. It works for me by customing the open and close delimiters. add_text <- 123
glue::glue("@online{Li2019,", .open = "{{")
#> @online{Li2019,
glue::glue("@online{Li20190{{add_text}},", .open = "{{")
#> @online{Li20190123},
glue::glue("@online{Li2019-{add_text},", .open = "{{")
#> @online{Li2019-{add_text}, Created on 2019-02-06 by the reprex package (v0.2.1) |
For the closing delimiter use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Created on 2019-02-06 by the reprex package (v0.2.1)
The text was updated successfully, but these errors were encountered: