You are now ready to download and install MikTeX (pronounced mick-tech). If it prints x86, it means you’re running 32-bit Windows (no, it’s not 86-bit :)). If you’re running a 64-bit Windows, it will print something like AMD64. If you’re comfortable with the Command Prompt, the easiest way to determine the Windows architecture is by opening a command prompt (cmd.exe) and copy-paste the following (and hit return): echo %PROCESSOR_ARCHITECTURE% If you’re already sure which one you’re running, you can skip this step. That is, whether you’re running a 32-bit or 64-bit Windows installation. Determine whether you’re running 32-bit or 64-bit Windowsīefore installing anything, you should determine the architecture of your system. I have tested that this works exactly the same by first installing R and RStudio and then finally installing MikTeX on a clean installation of Windows. You can just skip the parts explaining how to install R and RStudio. In case you are already experienced with R but are not using LaTeX, chances are you already have R and RStudio installed but do not have MikTeX. This guide assumes you have neither R, RStudio nor MikTeX installed before beginning the tutorial. Having installed R and RStudio before installing MikTeX? If you are running as a standard user, you may have varying degrees of success. I ran this tutorial as the default user that was created during installation of Windows 10. In other words, everything you need is explained in this tutorial. When writing this tutorial I used a new and 100% clean installation of Windows 10 - no software was installed in advance and no changes had been made to the settings of the computer (except changing the color of the desktop). If you are running an older version of Windows you should still be able to follow along, provided you are running at least Windows Vista. This tutorial assumes you are running Windows 10. (If you’re not familar with R, I’m not quite sure why you’re reading, but of course, you’re very welcome to read along!) Requirements If you are familiar with R and not with Markdown, follow me here on Medium or on Twitter to get notified when I post a tutorial on that. Howevever, if you are familiar with R and Markdown, that should not be a problem once you have seen an example R Markdown file (which you will as part of his tutorial). It doesn’t teach you the syntax of R Markdown. This tutorial teaches you how to install everything you need on a Windows 10 computer as well as how to create R Markdown files and compile them into PDF files. An R Markdown file is basically a standard Markdown file with embedded R code chunks. If you’re using R to statistically explore data sets, and you need to write reports detailing your findings, you can benefit from using R Markdown. Update - March 2018: If you’re on a Mac, see my post on how to create PDF reports on Mac OS High Sierra. It also guides you through creating your first R Markdown file and shows how to compile it into a PDF file using knitr. TLDR: This tutorial teaches you how to install LaTeX, R and R Markdown on Windows 10. Create PDF reports using R, R Markdown, LaTeX and knitr (on Windows 10)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |