@@ -175,7 +175,7 @@ getLogTickLabels <- function(ticks) {
175175 prefixValues <- paste0(prefixValues , " %*%" )
176176 # For 1 the multiplication is redundant and removed
177177 prefixValues [prefixValues == " 1%*%" ] <- " "
178- return (parse (text = paste(prefixValues , " 10^" , exponentValues , sep = " " )))
178+ return (scales ::: parse_safe (text = paste(prefixValues , " 10^" , exponentValues , sep = " " )))
179179}
180180
181181# ' @title getLnTickLabels
@@ -193,7 +193,7 @@ getLnTickLabels <- function(ticks) {
193193 prefixValues <- paste0(prefixValues , " %*%" )
194194 # For 1 the multiplication is redundant and removed
195195 prefixValues [prefixValues == " 1%*%" ] <- " "
196- return (parse (text = paste(prefixValues , " e^" , exponentValues , sep = " " )))
196+ return (scales ::: parse_safe (text = paste(prefixValues , " e^" , exponentValues , sep = " " )))
197197}
198198
199199
@@ -207,7 +207,7 @@ getLnTickLabels <- function(ticks) {
207207# ' @export
208208getSqrtTickLabels <- function (ticks ) {
209209 sqrtValues <- ticks ^ 2
210- return (parse (text = paste(" sqrt(" , sqrtValues , " )" , sep = " " )))
210+ return (scales ::: parse_safe (text = paste(" sqrt(" , sqrtValues , " )" , sep = " " )))
211211}
212212
213213# ' @title getGreekTickLabels
0 commit comments