Skip to contents

Before you install BycatchEstimator

The BycatchEstimator package prints output figures to pdf files, so you must have a LaTeX package installed on your computer. If you don’t have this, you can install TinyTex (https://yihui.org/tinytex/), which works and takes up less disk space than other LaTeX options. Try the test code from the TinyTex installation guide to make sure you can print to a pdf before trying to install BycatchEstimator.

BycatchEstimator requires recent versions of R and all the libraries that it uses. If you have an older version of R, you may want to update R and all your libraries to the current version before you try to install BycatchEstimator.

RStudio will need to have authority to make changes on your computer so that you can install new libraries. You may need to run RStudio with administrator priveleges, and/or give permission for the installation files to make changes on your computer.

Installation

To install BycatchEstimator from GitHub, you must have the devtools package installed. You can then install the development version of BycatchEstimator from GitHub with:

# install.packages("devtools")
devtools::install_github("ebabcock/BycatchEstimator")

When you install BycatchEstimator, it will install and/or update many other files. Try to install all of these. When it asks whether you want to install packages that require compilation, try saying yes, and if that doesn’t work try saying no. If any of the package installations or updates fail, you can try again to install those packages one at a time. Don’t worry if you get a message saying that some of your packages are out of date.

Getting started

Due to a complication in coding, the user must load library(MuMIn) in addition to library(BycatchEstimator).

At this point, try looking for the help files for the BycatchEstimator functions to make sure the library is loaded.

?bycatchSetup
?bycatchFit

You should now be able to run the functions. Try running the example data here https://github.com/ebabcock/BycatchEstimator to make sure it works. For more information see the User’s Guide https://ebabcock.github.io/BycatchEstimator/articles/UserGuide2.html.

Contact for help if you can’t get it to work.