Error in Compiling a Report

Can you at least show the code that is producing that error message? or even better, put together a proper REPRoducible EXample (reprex) illustrating your issue? it is not necessary to use your actual data, you can provide some made-up analogous that reproduces the problem.

Also, just to clarify terminology, R is an interpreted programming language, so, there is no compiling of R code, maybe you mean you are "sourcing" an R script or "knitting" an .Rmd document?