Problems with render and Knit

I am repeatedly having problems either knit or markdown especially when I have to use rweka, and sometimes I can randomly get it to render, but never to knit when I need to write a paper. As a matter of fact this was rendering last night, but. suddenly is not now. Currently, I am getting this error:

processing file: project_final_test.spin.Rmd
|.. | 2%
ordinary text without R code

|.... | 3%
label: unnamed-chunk-1
Quitting from lines 3-11 (project_final_test.spin.Rmd)
Error in title:"BAN340_project_final" : NA/NaN argument

which is this code below. Any insight would be greatly appreciated. Ultimately, I have to find a way to create a report that includes code folding for my final paper of three analyses. I appreciate your insight my r knowledge is still at the beginner level.

---
#' title: "BAN340_project_final"
#' author: "Brett McGillivary"
#' date: "04/25/2020"
#' output:
  #' word_document: default
#'   html_document: default
#'   pdf_document: default
#'  code_folding: hide
---
  
  #' Setup
  
  #+ setup 

library(rattle)
library(ggplot2)
library(countrycode)
library(rpart)
library(rpart.plot)
library(readr)
library(knitr)
Sys.setenv(JAVA_HOME="/usr/local/opt/openjdk/")
pacman::p_load("RWeka")
pacman::p_load("partykit")

#+
hotel_data <- readr::read_csv(
  "hotel_booking.csv",
  col_types = readr::cols(is_canceled = readr::col_factor(levels=c(0, 1)))) %>%
  janitor::clean_names() %>%
  tidyr::replace_na(list(children=0))
hotel_data %>% filter(!complete.cases(.))

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