title: How do I load an rds file into R
body: <p>I'm trying load a <code>rds</code> file which should contain some data.</p>
  <p>Professor says to use <code>readRDS()</code>, however R gives this long error message which I've not been able to decipher myself.</p>
  <p>I'm trying to load the file and place it in an Object.</p>
  <p>I hope that someone are able to provide some clever solution to this problem.</p>
  <pre><code>Canteen_clean &lt;- readRDS(&quot;C:/Users/a_s_j/OneDrive/Studie/Cand.merc.Business Intelligence/1. Semester/R for Business Analytics/.Rproj/39 - Graphics/Exercises02/canteen_clean.rds&quot;)
  </code></pre>
  <blockquote>
  <p>Error in gzfile(file, &quot;rb&quot;) : cannot open the connection<br />
  In addition: Warning message: In gzfile(file, &quot;rb&quot;) : cannot open compressed file 'C:/Users/a_s_j/OneDrive/Studie/Cand.merc.Business Intelligence/1. Semester/R for Business Analytics/.Rproj/39 - Graphics/Exercises02/canteen_clean.rds', probable reason 'No such file or directory'</p>
  </blockquote>
  <p>I'm using:
  <code>pacman::p_load(&quot;pacman&quot;, &quot;tidyverse&quot;)</code> to load the packages that should be necessary.</p>