I cannot escape backslash in R
<p>I can't seem to get rid of the backslash (\) from a string. Read tons of different answers to this question but none of them seems to work for me. Consider following example (the trials below are taken from various answers to similar question in stackoverflow):</p>

<pre><code>temp = "35:12:34\"}}}\"}"
gsub("\\","",temp)
</code></pre>

<blockquote>
  <p>Error in gsub("\", "", temp) : 
  invalid regular expression '\', reason 'Trailing backslash'</p>
</blockquote>

<pre><code>gsub("\\","",temp,fixed=T)
</code></pre>

<blockquote>
  <p>[1] "35:12:34\"}}}\"}"</p>
</blockquote>

<pre><code>gsub("\\\\","",temp,fixed=T)
</code></pre>

<blockquote>
  <p>[1] "35:12:34\"}}}\"}"</p>
</blockquote>

<pre><code>gsub("([\\])","",temp)
</code></pre>

<blockquote>
  <p>[1] "35:12:34\"}}}\"}"</p>
</blockquote>

<pre><code>gsub("([\\])","",temp,fixed=T)
</code></pre>

<blockquote>
  <p>[1] "35:12:34\"}}}\"}"</p>
</blockquote>

<p>Would appreciate help to get rid of this backslash.</p>