In my functional programming, I am currently using the following code snippet to generate code for the function body.
i <- 4 paste("x.", i, " <- state", sep = "")
This creates the code x.4 <- state . Now I would like to switch to bquote() , but I am not going to create this piece of code. A
i <- 4 bquote(x..(i) <- state)
fails due to points.
I use dots to highlight higher orders, for example x.12.4 . All other delimiters, such as _ or - , are not allowed in variable names.
Do you have an idea, or is it impossible with dots?
source share