knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This package helps a user set up an Elsevier template for writing academic journal reports in Rmarkdown. The setup requires very few lines of code and will get you up and running in a few seconds (provided you have all the relevent dependencies installed - see below), with a fully working and good-to-go template.
Using Texevier you can simply start writing your paper / thesis / phd in R, with a template guiding you through the most important aspects you will encounter in your writing. Your template will look as follows:
Make sure you have the following installed on your computer:
install.packages(c('tinytex', 'rmarkdown')) tinytex::install_tinytex()
Alternatively, you could install the full MikTex version.
After installing all three at the top, simply run the following code:
if (!require("devtools")) install.packages("devtools") library(devtools) devtools::install_github("Nicktz/Texevier") library(Texevier) # Input your directory as dir: dir <- "YOUR DIRECTORY HERE" # Ideally choose an empty folder. template_name = "Write_Up" create_template(directory = dir, template_name = template_name, build_project = TRUE, open_project = TRUE)
This will automatically install all the needed files and components in the right places - allowing you to immediately focus on your paper. By setting r build_project = TRUE
and open_project = TRUE r
, a new project file will be created in your chosen folder location, and opened with a new environment.
Doing research in R allows you to verify your work easily. This template is designed to save the researcher time in terms of setting up a proper template for doing formal research. This is something which could feel daunting and can be time-consuming for even intermediate LaTeX and R users. This package is intended to get you started in less than a minute.
Feel free to edit the templates and use this as a starting point for your own research.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.