How to replace ' to " with gsub

nope it does not work, log say that the """ expected one of [ \\t\\r\\n ], \"\#\", \"{\", \",\", \"]\"