title: Error in inherits(x, "tbl_df") : argument "x" is missing, with no default
body: <p>I am trying to reproduce a code published at R bloggers, however I have some issues with the data.</p>
  <p>This are the packages I downloaded:</p>
  <pre><code># Load the necessary packages
  # Tidyverse is our rock in data analysis (includes ggplot2)
  if(!require(&quot;tidyverse&quot;)) install.packages(&quot;tidyverse&quot;) 
  # Janitor cleans data like the best janitor out there!
  if(!require(&quot;janitor&quot;)) install.packages(&quot;janitor&quot;)
  # ggsci has my favourite color palettes
  if(!require(&quot;ggsci&quot;)) install.packages(&quot;ggsci&quot;)
  # ggalt is necessary for the dumbbell chart
  if(!require(&quot;ggalt&quot;)) install.packages(&quot;ggalt&quot;) 
  # ggtext allows for great text to include for charts
  if(!require(&quot;ggtext&quot;)) install.packages(&quot;ggtext&quot;)   
  </code></pre>
  <p>And here is my issue:</p>
  <pre><code># Load the csv data file
  df &lt;- read_csv(&quot;WomenInGovernment_Data.csv&quot;)
  </code></pre>
  <pre><code>── 
  
  Column specification ────────────────────────────────────────────────────────────────────────────────────────
  cols(
    .default = col_character()
  )
  ℹ Use `spec()` for the full column specifications.
  
  Warning: 13 parsing failures.
  row col   expected    actual                         file
  33  -- 27 columns 1 columns 'WomenInGovernment_Data.csv'
  64  -- 27 columns 1 columns 'WomenInGovernment_Data.csv'
  65  -- 27 columns 1 columns 'WomenInGovernment_Data.csv'
  78  -- 27 columns 1 columns 'WomenInGovernment_Data.csv'
  91  -- 27 columns 1 columns 'WomenInGovernment_Data.csv'
  ... ... .......... ......... ............................
  See problems(...) for more details.
  
  &gt; spec()
  Error in inherits(x, &quot;tbl_df&quot;) : argument &quot;x&quot; is missing, with no default
  </code></pre>
  <p>I downloaded the data from GitHub <a href="https://github.com/danderson222/women-in-government/blob/main/WomenInGovernment_Data.csv" rel="nofollow noreferrer">1</a> as a csv file.</p>