[chronojump] Fixed graph.R unicoded strings with c() or other operations
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed graph.R unicoded strings with c() or other operations
- Date: Wed, 6 May 2020 11:26:49 +0000 (UTC)
commit 99a675ba26581983bb5bf5353a1b5ffb5208f947
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed May 6 13:26:13 2020 +0200
Fixed graph.R unicoded strings with c() or other operations
encoder/graph.R | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/encoder/graph.R b/encoder/graph.R
index 2859d346..1836a8e5 100644
--- a/encoder/graph.R
+++ b/encoder/graph.R
@@ -117,7 +117,9 @@ translateToPrint <- function(englishWord)
#Needed conversion for Windows:
#unicoded titles arrive here like this "\\", convert to "\", as this is difficult, do like this:
#http://stackoverflow.com/a/17787736
- myWord = parse(text = paste0("'", myWord, "'"))
+ #myWord = parse(text = paste0("'", myWord, "'"))
+ #but also as.character in order to be able to do combines c() on paintCrossVariables() and operations
on f.horlegend()
+ myWord = as.character(parse(text = paste0("'", myWord, "'")))
return(myWord)
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]