Greetings,
This is my first time trying to use knit in an Rmd file.
The last command chunk works just fine when I run the chunk from the file but not when I try to knit.
---
title: "Printout"
author: "Jason"
date: "4/20/2020"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r ---> Libraries}
library(tidyverse)
library(reprex)
library(here)
here()
dr_here(show_reason = FALSE)
```
```{r}
colnames(dat.SM)
```
The R markdown tab:
==> rmarkdown::render('/Users/jcraggs/Documents/GitHub/Brad_PT/Brad_printout.Rmd', encoding = 'UTF-8');
processing file: Brad_printout.Rmd
|.......... | 14%
ordinary text without R code
|.................... | 29%
label: setup (with options)
List of 1
$ include: logi FALSE
|.............................. | 43%
ordinary text without R code
|........................................ | 57%
label: ---> Libraries
|.................................................. | 71%
ordinary text without R code
|............................................................ | 86%
label: unnamed-chunk-1
Quitting from lines 25-27 (Brad_printout.Rmd)
Error in is.data.frame(x) : object 'dat.SM' not found
Calls: <Anonymous> ... withVisible -> eval -> eval -> colnames -> is.data.frame
Execution halted
Does any one have any suggestions?
Jason the #rstatsnewbie