Squashed 'third_party/osqp/' content from commit 33454b3e23

Change-Id: I056df0582ca06664e86554c341a94c47ab932001
git-subtree-dir: third_party/osqp
git-subtree-split: 33454b3e236f1f44193bfbbb6b8c8e71f8f04e9a
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/docs/get_started/r.rst b/docs/get_started/r.rst
new file mode 100644
index 0000000..a8fb63f
--- /dev/null
+++ b/docs/get_started/r.rst
@@ -0,0 +1,40 @@
+R
+======
+
+Binaries
+--------
+
+A pre-compiled version of the OSQP R interface can be installed directly from within R.   Note that this will install the OSQP interface from the current CRAN repository, which may not be the most up-to-date version:
+
+.. code:: r
+
+  install.packages("osqp")
+
+
+
+The pre-compiled binaries can also be downloaded `directly from the CRAN server
+<https://cran.r-project.org/web/packages/osqp/>`_.
+
+From Sources
+------------
+
+If you would like to use the most recent version of OSQP-R and have access to git on your machine along with a suitable compiler, then you can do the following from within a terminal:
+
+.. code:: r
+
+  git clone --recursive https://github.com/osqp/osqp-r.git
+  cd osqp-r
+  R CMD install .
+
+From Sources (within R)
+-----------------------
+
+If you would like to install the latest version directly from with R (e.g.\ because you do not have ``git`` installed) and have a suitable compiler, then you can do the following from within R:
+
+.. code:: r
+
+  install.packages("remotes")
+  remotes::install_github("r-lib/remotes#103")
+  remotes::install_git("git://github.com/OxfordControl/osqp-r",submodules = TRUE)
+
+Note that the second line above is necessary because the "remotes" package in R does not currently support recursive cloning of git submodules.