R"..." does not require extra escaping anymore
fixed S[...] for multi-line
turns out I broke R inside quote... should have been obvious really