# Install PhotosynQ for R
If you don't already have, install RStudio (opens new window) and R (opens new window) first. After that you can install the PhotosynQ package using one of the following options.
# CRAN
The easiest way to install PhotosynQ for R is through the CRAN (opens new window) network that is hosting the repository for R Packages.
- Open RStudio (opens new window)
- Select Tools from the menu and click on Install Packages
- Select Install from: Repository (CRAN)
- Type
PhotosynQ
into the Packages input field - Make sure the Install dependencies checkbox is checked
- Click on Install to finish the installation and close the dialog
Note
If you are not using CRAN to install the PhotosynQ Package you might have to install the Packages httr
and getPass
it depends on manually using the command: install.packages(c("httr","getPass"))
.
# Package Archive File
Download the latest release of the PhotosynQ R package. Select the file indicated as Source code (tar.gz). This is the format required by RStudio.
- Open RStudio (opens new window)
- Select Tools from the menu and click on Install Packages
- Select Install from: Package Archive File
.tgz
.tar-gz
- Package archive: Click on Browse... and select the downloaded file
- Click on Install to finish the installation and close the dialog
# Development version with devtools
For users that already have a development environment, devtools (opens new window) provides an easy installation from the GitHub repository.
- Open RStudio (opens new window)
- Install the release version of devtools from CRAN with
install.packages("devtools")
- Make sure you have a working development environment.
- Windows: Install Rtools.
- Mac: Install Xcode from the Mac App Store.
- Linux: Install a compiler and various development libraries (details vary across different flavors of Linux).
- Install the development version of PhotosynQ-R:
devtools::install_github("PhotosynQ/PhotosynQ-R")
GitHub: Source (opens new window)