opened
huguesv
username_0
Fixes https://github.com/Microsoft/RTVS/issues/2409

File looks like this now:
```
# Application settings file.
# File content was generated on 10/6/2016 3:09:07 PM.

settings <- new.env()

settings$name1 <- 'value1'

settings$name2 <- 'value2'

```

And it can import settings from v0.5 or older. Once you save, it will rewrite it in new format.

So if you source the settings file, you access them via `settings$name1`.  That's not exactly what is mentioned in the bug though, which says you should be able to access them via `settings:::name1`.  Not sure if that was a mistake of if there's a way to achieve that.
Store settings in an environment.
issue
created
MikhailArkhipov
username_1
👍
comment
created
huguesv
username_0
Added a fix for #2420.

All values are escaped/unescaped when saving/writing to Settings.R, which means the UI is slightly annoying to use when newlines are present, but user can always edit those directly in Settings.R. The benefit is that the user doesn't need to worry about generating invalid strings, there's no need to know they are stored in R code as opposed XML or whatever.

FYI `FromRStringLiteral` was not used before. I made changes to that one and `ToRStringLiteral` so that you can round-trip values that have characters that need escaping.
comment
created
MikhailArkhipov
username_1
👍
comment
created
huguesv
username_0
Added parsing of hex and octal escape sequence.
comment
created
int19h
username_2
👍
comment