• Stars
    star
    126
  • Rank 284,543 (Top 6 %)
  • Language
    TeX
  • Created about 4 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

My collection of R Markdown templates, as an R package.

Steve’s R Markdown Templates

My stevetemplates hexlogo

stevetemplates is an R package to help you create lovely R Markdown documents, primarily for conversion to LaTeX PDFs. They come from my suite of R Markdown templates, which I’m making available as an R package. The impetus behind the R package is three-fold. First, I’ve always wanted to get something on CRAN just to say I did it. Two, I’m hopelessly vain and like making my first name as a prefix for various R-related things (see also: {stevemisc} and {stevedata} as part of the hypothetical {steveverse} for all things R and me (i.e. Steve)). Three, it would be nice to cut down on how clunky my YAML can get and it’d be nice for me and other users to have one single place to store these templates that don’t depend on my cornball relative paths.

Installation

You can install this on CRAN.

install.packages("stevetemplates")

The development version may also have some extra goodies not yet published on CRAN. You can install the development version of stevetemplates from Github via the devtools package. I suppose using the remotes package would work as well.

devtools::install_github("svmiller/stevetemplates")

Usage

The easiest way to use my templates is within Rstudio. Go to File > New File > R Markdown. Here, select any template you’d like to use. The version on CRAN should lag behind the development version, but the development version includes the following templates:

  • Steve’s Anonymous Manuscript Template: This is an R Markdown template I used exactly once for an anonymous manuscript submission that needed to look an exact way. That submission was not published at that journal. I have not had the occasion to submit there again.
  • Steve’s First Article/Manuscript Template: This is my first article/manuscript template and I made over five years ago. I used this template quite often for my manuscripts, but I switched to another template (also included in this package). It’s here as a legacy addition. I don’t intend to offer much support for this template anymore, but it has lots of goodies (e.g. appendix support, suppressing title pages, etc.). You can call it in the YAML with stevetemplates::article.
  • Steve’s 2nd Article/Manuscript Template: This is my second article/manuscript template that I made in September 2020. It’s patterned off the Association for Computing Machinery (ACM) LaTeX templates. You can call it in the YAML with stevetemplates::article2.
  • Steve’s Academic CV Template: This is my academic CV template I made in 2016, and I think it’s my most popular. It’s certainly the one I see most often in the wild. It’s also what I currently use for my CV. You can call it in the YAML with stevetemplates::cv.
  • Steve’s Non-Academic RĂ©sumĂ© Template: This is an addition I made in 2020 to my suite of R Markdown templates. It’s a bit clunky, but it’s useful and markup-light for non-academic rĂ©sumĂ©s. You can call it in the YAML with stevetemplates::resume.
  • Steve’s Beamer Template: This is my go-to presentation template as I prefer Beamer PDFs to other presentation formats. You can call it in the YAML with stevetemplates::beamer.
  • Steve’s HTML Template: I created this template on the fly for formatting academic manuscripts to an HTML document. Capabilities are limited the extent to which there’s more CSS I need to adjust. This manuscript features prominently in my {steveproj} package.
  • Steve’s Memo Template: I created this for a memo I needed to write in 2019. You can call it in the YAML with stevetemplates::memo.
  • Steve’s Statement Template: I created this template in 2016 (I believe). I use it for writing various “statements” (e.g. my research statement, statement of teaching philosophy) when applying for jobs. I also use it for miscellaneous university busy work. You can call it in the YAML with stevetemplates::statement.
  • Steve’s Syllabus Template: This is one of my first templates, dating to mid-2016. I use it for all my syllabi for any class I teach. You can call it in the YAML with stevetemplates::syllabus.
  • Steve’s Word Template: I created this template many years ago and never worked with it because Word is limited in its functionality. I’ve since come back to this template because its limitations make it wonderful for “anonymizing” a manuscript for submission to journals that are picky about PDF submissions. This manuscript features prominently in my {steveproj} package.

The user should notice that the YAML contains the functions (loaded in this package) to compile these documents. They are basic wrappers for rmarkdown::pdf_document. Please consult the corresponding posts and the template repository for rudimentary examples and the underlying code to help guide your usage. Importantly: some features/functionality might not be evident in these templates because they may require other add-ons (e.g. R packages or specialty fonts) that you may or may not have.

More Repositories

1

svm-r-markdown-templates

This is my (deprecated) suite of R Markdown templates for academic manuscripts, beamer presentations, and syllabi. DOWNLOAD {stevetemplates} INSTEAD.
HTML
892
star
2

steve-ngvb-jekyll-template

This is my no-good-very-bad template for Jekyll (modified from jekyll-new and Alex King's Favepersonal).
CSS
45
star
3

course-website

This is a Jekyll template, patterned off my main Jekyll template, for organizing a course website and hosting it on Github.
CSS
40
star
4

steveproj

An R package for getting academic projects/papers started.
R
30
star
5

peacesciencer

Tools and Data for Quantitative Peace Science
HTML
25
star
6

svmiller.github.io

My website on github at http://svmiller.com
HTML
24
star
7

dragracer

An R package containing data for RuPaul's Drag Race, Seasons 1-14. The package includes data at the episode-level, contestant-level, and episode-contestant-level.
R
19
star
8

codename

Codename Generation for Organizations, People, Projects, and Whatever Else
R
13
star
9

stevethemes

Steve's {ggplot2} themes and related theme elements
R
13
star
10

woi

"The Effect of White Social Prejudice on Support for American Democracy" (w/ Nicholas T. Davis)
R
11
star
11

stevemisc

Steve's Miscellaneous Functions
R
10
star
12

post8000

POST 8000 (Foundations of Social Science Research for Public Policy) is a class I teach at Clemson University
HTML
9
star
13

syllabus-template

This is a syllabus template I wrote to highlight use of advdate and datetime to make for easy generation of a week-by-week reading list in a syllabus.
TeX
6
star
14

stevedata

Steve’s Toy Data for Teaching About a Variety of Methodological, Social, and Political Topics
R
6
star
15

steveproj-targets-example

An example of integrating {steveproj} (and {stevetemplates}) with {targets} for a reproducible workflow
R
5
star
16

earr

Economic Anxiety or Ethnocentrism? An Evaluation of Attitudes Toward Immigration in the U.S. From 1992 to 2017
R
5
star
17

get-some-WB-data

This script will grab four macroeconomic indicators from World Bank for pedagogical purposes.
R
4
star
18

wvsccodes

This code and data sync World Values Survey ccodes with country names and CoW codes.
R
4
star
19

posc3410

POSC 3410 (Quantitative Methods in Political Science) is a class I teach at Clemson University
HTML
3
star
20

heckman-bayes

A Bayesian Heckman Selection Model: An Application in R with the Stan Programming Language
3
star
21

posc1020

POSC 1020 (Introduction to International Relations) is a class I teach at Clemson University
SCSS
3
star
22

wvs-usa-abortion-attitudes

This data set cobbles together attitudes on the justifiability of abortion in the United States across six waves of World Values Survey data. This data set is meant for classroom instruction on quantitative methods.
R
3
star
23

random-effects-stargazer-R

This script illustrates how to (quasi)-automate the rendering of random effects in stargazer output for LaTeX.
R
3
star
24

posc3610

POSC 3610 (International Conflict) is a class I teach at Clemson University
SCSS
2
star
25

eh6105

Quantitative Methods (EH6105)
HTML
2
star
26

etst

Replication files for "Economic Threats or Societal Turmoil? Understanding Preferences for Authoritarian Political Systems"
R
2
star
27

etjc

The Effect of Terrorism on Judicial Confidence
TeX
2
star
28

gss-guns-manuscript

"What Americans Really Think About Gun Control: Evidence from the General Social Survey, 1972-2016"
TeX
2
star
29

2016-cces-trump-vote

This repo contains some code and data for an analysis on the Trump vote in the 2016 CCES data.
R
2
star
30

sky-sheep

Steve’s Methods Guide: A Book on Intermediate Methods That Will Assuredly Have a Better Name When I’m Done With It
TeX
2
star
31

wvs-usa-strong-leader

R code and data to accompany a blog post at svmiller.com
R
2
star
32

clean-greenbook

This R script will clean USAID's Greenbook data for both economic aid and military aid, also converting the data from wide to long
R
2
star
33

gss-guns

I analyze GSS data to show the relationship between partisanship and support for gun control
R
2
star
34

ir3-2

Quantitative Methods in the Study of International Relations
R
2
star
35

grad-student-website

This is the design for my website (hosted by the University of Alabama) when I was a graduate student.
HTML
2
star
36

post8000r

Materials for Foundations of Social Science Research for Public Policy
1
star
37

territorial-threats-corruption-attitudes

Repository for "External Territorial Threats and Tolerance of Corruption: A Private/Government Distinction", forthcoming at Peace Economics, Peace Science and Public Policy
TeX
1
star
38

reinhart-rogoff

This repo contains replication files for Reinhart and Rogoff (2010) via Herndon et al (2014).
R
1
star
39

wvs_usa_abortion

A workflow template for a fairly simple analysis
R
1
star
40

wvs-argentina-defense-attitudes

This data set cobbles together attitudes on the importance of defense as national goal in Argentina across a handful waves of World Values Survey data. This data set is meant for classroom instruction on quantitative methods
R
1
star