diff --git a/.gitignore b/.gitignore
index d663473fff38b23764818c2729185db65e43048d..d6e7525c2e4133483fb76dac870f5ebc593e42f8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,10 +1,37 @@
+###
+ # GitIgnore file for R Language projects.
+ # See https://git-scm.com/docs/gitignore for documentation.
+ #
+ # https://git.brandon-rodriguez.com/other/gitignore
+ # Version 1.0
+ ##
 
-# Do not track auto-generated files.
-.~lock.*
-*.aux
-*.synctex.gz
+
+# Ignore environment settings.
+.Rproj.user/
+.Rapp.history
+.RData
+.Rhistory
+.Ruserdata
+
+
+# Ignore temporary files.
+[Tt]emp/
+[Tt]empfiles/
+[Tt]emp_files/
+*.tmp
+*.temp
 
 
-# Do not track local environment logs.
+# Ignore logfiles.
+[Ll]og/
+[Ll]ogs/
 *.log
 *.log.*
+
+
+# Ignore generated LaTeX files.
+.~lock.*
+*.aux
+*.synctex
+*.synctex.gz