title: R Markdown Issue - Object not found
body: <p>I am trying to run the below code and generate a report using R Markdown . Unfortunately I keep getting the below error. The code is processed dataset is taken into the environment and I can see the plots being generated without any issues. Provided the code as well for reference. R Markdown is always troublesome when I use it :(. Appreciate any assistance please. Thank you </p>
  
  <pre><code>Error in attach(mydata1) : object 'mydata1' not found
      Calls: &lt;Anonymous&gt; ... withCallingHandlers -&gt; withVisible -&gt; eval -&gt; eval -&gt; attach
      Execution halted
  </code></pre>
  
  <p>Rmd:</p>
  
  <pre><code>```{r setup, include=FALSE}
  knitr::opts_chunk$set(echo = TRUE)
  ### Load package and libraries
  
  library(dplyr)
  require(reshape)
  library(ggplot2)
  library(ggpubr)
  library(DMwR)
  library(mice)
  
  ```
  
  ```{r}
  attach(mydata1)
  head(mydata1)
  summary(mydata1)
  str(mydata1)
  ```
  </code></pre>