Unable to Knit .RMD to Html

Absolutely new to this and am trying to knit a very simple file . These first lines of code chunk return the error

library(tidyverse)
library(readr)
TotalActivity <- read_csv("FitBit_Data/TotalActivity.csv")
View(TotalActivity)

keep getting this error on the above line of code -
Quitting from lines 9-17 (VA_vs_RA.Rmd)
Error in .External2(C_dataviewer, x, title) : unable to start data viewer
Calls: ... withCallingHandlers -> withVisible -> eval -> eval -> View
Execution halted

Don't understand why.

You can't use the View() command in a knitted document, remove that from your code.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.