Following the solution provided here I'm trying to implement a script that replaces accented characters. Executing my code from console works fine, however when I execute this code:
x <- list('ÿ'='y')
from a RStudio script R returns following error:
source('~/R/DrivingDataAnalysis/R/WebScraper/VoltstatsScraper.R', encoding = 'UTF-8') Error in source("~/TestScript.R", : ~/TestScript.R:1:6: unexpected INCOMPLETE_STRING 1: list(' ^
for other accented characters like in the link R parses the script. How can I make this work in a script? I'm using R 3.3.1 and RStudio 0.99.896 on Windows 7.