You can copy and paste a small sample Rmd here by following these special formatting instructions: FAQ: How to Format R Markdown Source.
It might also help if you can describe all the steps you’ve taken already related to installing LaTeX. You mentioned MiKTeX — did you install in the default location following these instructions, or in another way? Can you open the MiKTeX console, and if so what do you see?