I am a beginner in Programming. I tried using tinytex to compile hadley wickham's Advanced R in `RStudio`. After hours of setting and package/font installing, another problem emerged:

I was unable to find any missing LaTeX packages from the error log **\_main.log**

> 
> ! LaTeX Error: Environment sidebar
> undefined.
> 
> 
> 

I have no idea what is going on. Thank you for everyone who helps.