I click File, New File, R script then enter this code below and ran it to install the tinytex package.
I checked on it to use it.
install.packages('tinytex')
Then I click on File, New File, and click on R markdown and gave it a title, author, and click on the PDF
format. I save it to the directory as doc.Rmd.
Then in the doc.Rmd tab I select Knit and choose Knit to HMTL. It works fine and produced the report.
Then I choose Knit to PDF and it gives me the error message as below. It doesn't seem like the tinytex package is working or I am not using it right.
Windows: MiKTeX (Complete) - http://miktex.org/2.9/setup
_ (NOTE: Be sure to download the Complete rather than Basic installation)_
Thank you for your advise and suggestions.
Tried many attempts and going through some errors while installing along the way but kept on trying and it finally work. I was able to Knit to PDF now.
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it: