Error in load data in r software - rmarkdown knit
<p>I am new to R programming, so, please bear with me. I want to run a multi linear regression and do prediction for my sport data.</p>

<pre><code>load(sports)
summary (sports)
ls(sports)
attach(sports)
fit = lm(sport_score ~ sport_votes + sports_rating)
summary(fit)

newdata = data.frame( sport_vote = 80, sport_rating = 7.7 , data = sports)

predict(fit, newdata, interval="predict") 
</code></pre>

<p>I have used this code which works well and prints the outputs for me perfectly in the console. But, when I want to knit it it has an error of:</p>

<p>Error in load(sports.rdata) : object 'sports.rdata' not found calls:  ... withcallinghandles -> withvisible - > eval -> eval -> load</p>