DS4PS / cpp-526-fall-2020

Course shell for CPP 526 Foundations of Data Science I for Fall 2020
http://ds4ps.org/cpp-526-fall-2020/
MIT License
3 stars 1 forks source link

Lab 3 will not knit #14

Open krittschof opened 4 years ago

krittschof commented 4 years ago

I am receiving the following error message when I try to knit. image

It is referring to line 13, and this is the code that was provided to us. I opened a new template without my code and the knit works, but when I copy and paste my code for ##Replication, then I get the above error message in the screen shot. The code is as follows just in case you need to see, I did include the install..package function ....


knitr::opts_chunk$set(echo = TRUE, 
                      message = FALSE, 
                      warning = FALSE, 
                      fig.width = 10, 
                      fig.height = 8)     # Setup for knitting options

library(dplyr)
library(pander)                           # Loading required packages
install.packages( "Lahman" )
lecy commented 4 years ago

You cannot install a package during a knit.

Recall that you only need in install a package once! After that you load with library( package.name).

You should only be loading packages during a knit.

krittschof commented 4 years ago

Yes! Thank you!