TransWikia.com

Cannot install packages in the Knitr environment Overleaf

TeX - LaTeX Asked by Yobin Timilsena on March 30, 2021

I am trying to write my R code directly in my Overleaf document using knitR. However, this message pops up when I run the following code:

<>=

# Install relevant packages
install.packages('wooldridge')
# Load the hprice dataset from the Wooldridge package
data(hprice1, package = 'wooldridge')
#Attach the dataset
attach(hprice1)
#Estimate a linear model
estmodel <- lm(price~assess+sqrft+lotsize+bdrms)
#Summarize the regression results
summary(estmodel)

1@[1]

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP