Convert a variable created by string_to_var back to the original string.

var_to_string(str)

Arguments

str

string which was generated by string_to_var

Value

the original string

Examples

var_to_string(string_to_var("a & b"))
#> [1] "a & b"
var_to_string(string_to_var("saba and savta"))
#> [1] "saba and savta"
var_to_string(string_to_var("/home/mydir"))
#> [1] "/home/mydir"
var_to_string(string_to_var("www.google.com"))
#> [1] "www.google.com"
var_to_string(string_to_var("my_variable + 3"))
#> [1] "my_variable + 3"
var_to_string(string_to_var(".hidden variable"))
#> [1] ".hidden variable"
var_to_string(string_to_var("NULL"))
#> [1] "NULL"