Linear Regression Model I'm taking a course on Supervised Learning in R: Regression. There is a section where I'm supposed to predict blood pressure given age and weight. This is was MY approach

# Create the formula and print it
fmla &lt;- lm(blood_pressure ~ age + weight, data=bloodpressure)
fmla

# Fit the model: bloodpressure_model
bloodpressure_model &lt;- fmla

# Print bloodpressure_model and call summary() 
bloodpressure_model
summary(bloodpressure_model)


It was an incorrect submission. The message error message read -  "The contents of the variable fmla aren't correct."

DataCamp's solution was this

# bloodpressure is in the workspace
summary(bloodpressure)

# Create the formula and print it
fmla &lt;- blood_pressure ~ age + weight
fmla &lt;- lm(blood_pressure ~ age + weight, data=bloodpressure)

fmla

# Fit the model: bloodpressure_model
bloodpressure_model &lt;- lm(fmla, data = bloodpressure)

# Print bloodpressure_model and call summary()
bloodpressure_model
summary(bloodpressure_model) 


Both of these models had  the same diagnostic results. What's the issue with MY approach?
It should be a bug in their server. The fmla variable should have the same contents in your code and in theirs. This is because the last assignment on both scripts is 

fmla &lt;- lm(blood_pressure ~ age + weight, data=bloodpressure)