Error for Knit to HTML

Hello! I am new to RStudio and I am trying to knit to HTML but when I do I get this error:

processing file: Calibration_assignment.Rmd
Error in parse_block(g[-1], g[1], params.src) :
duplicate label 'fig_humid_timeseries'
Calls: ... process_file -> split_file -> lapply -> FUN -> parse_block
Execution halted

I have no idea what this means so any help would be appreciated! Thank you!

Thank you!

So I found the duplicates and changed them, however I get a new error:

Quitting from lines 43-43 (Calibration_assignment.Rmd)
Error in setwd(dir) : cannot change working directory
Calls: ... process_group.inline -> call_inline -> in_dir -> setwd
Execution halted

I went to line 43 and I am not sure what is wrong about it. I didn't the original code as it was given to us by a professor we just had to change to to fit our data

1 Like

The code causing a problem is actually inline code. So it would look something like this in the Rmd file:

Blah blah blah `r setwd(dir)` yadda yadda...

If you didn't write this part, let the professor know about it. Maybe even fix it to show off. :stuck_out_tongue_winking_eye:

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