knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
The stable version of the package is available on CRAN servers, which means that you can install it with the regular install.packages()
function.
install.packages("divDyn")
If for some reason, the installlation from CRAN fails, you might need to look into alternative methods.
For the sake of completeness and simplicity, the sources of the stable version are also available on GitHub. The install.packages()
function can be used to install this from source - but you will have to install dependencies of the package, and you have to have a compiler installed on your system
install.packages( "https://zenodo.org/records/14202954/files/divDyn_0.8.3.tar.gz?download=1", repos=NULL, type="source")
If you encounter technical problems with the package that are not described anywhere, you might want to take a look at the development version.
If you wish to install the development version, I recommend a manual installation:
1. Clone the repository to your local hard drive.
2. Rename the directory r-package
to divDyn
.
3. Make sure that you have the package dependencies, and a compiler installed: on Windows, RTools should include all the tools you need, on Mac, you will need to have XCode - if you use GNU/Linux, you have to go down deeper the rabbit hole :).
4. Open a terminal and navigate to the directory where you cloned. The divDyn
directory should be visible from there.
5. Run this line in the terminal
R CMD INSTALL divDyn
You can also try devtools::install_github("divDyn/r-package")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.