Skip to content

Commit

Permalink
Small changes in lec 8
Browse files Browse the repository at this point in the history
  • Loading branch information
kbroman committed Mar 12, 2014
1 parent d4aa1d2 commit fc08a52
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions 08_Rpack/08_rpack.tex
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,14 @@
R CMD INSTALL --build RSkittleBrewer_1.1.tar.gz
\end{lstlisting}

\bigskip
\begin{lstlisting}
# also consider (within R):
library(devtools)
build("/path/to/RSkittleBrewer")
build("/path/to/RSkittleBrewer", binary=TRUE)
\end{lstlisting}

\note{
To install your package, you first need to {\nhilit build} it. {\tt
R CMD build} creates the {\tt .tar.gz} source file that you'd
Expand All @@ -282,7 +290,8 @@
lesser-known {\tt --as-cran} flag, which checks further things.

On Windows, use {\tt R CMD INSTALL --build} to create a {\tt .zip}
file of the ``compiled'' package.
file of the ``compiled'' package. You can also use the {\tt build()}
function from the devtools package.
}
\end{frame}

Expand Down Expand Up @@ -348,7 +357,7 @@
\begin{lstlisting}
# build package documentation
doc:
R -e 'library(devtools);document(roclets=c("namespace", "rd"))'
R -e 'library(devtools);document(roclets=c("namespace", "rd"))'
\end{lstlisting}

\note{
Expand Down

0 comments on commit fc08a52

Please sign in to comment.