title: In R, is there a way to specify a vector as a *literal*?
body: <p>[Have just started to learn R]</p>
  
  <p>Say, I want to create a vector with the values <code>1 4 6 8</code>. Neither of these work:</p>
  
  <pre><code>x &lt;- [1, 4, 6, 8]
  x &lt;- [1 4 6 8]
  </code></pre>
  
  <p>Is there a way to create a vector using literal notation, i.e. without using a function etc?</p>