Skip to contents

Before you install BycatchEstimator

BycatchEstimator requires recent versions of R and all the libraries that it uses. If you have an older version of R, 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 privileges, and/or give permission for the installation files to make changes on your computer. If you can’t install on your own computer, bycatchEstimator works fine in RStudio cloud (https://rstudio.cloud).

You should not need RTools or Xcode to install the package. If you see a warning about this, ignore it.

Installation

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

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

To install the version from 2024 or 2025, use this syntax. The current version is recommended because it has some new features and is much more efficient:

# install.packages("devtools")
devtools::install_github("ebabcock/BycatchEstimator@v0.0.9")
devtools::install_github("ebabcock/BycatchEstimator@v1.0.0")

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

After running the library function, try looking for the help files for the BycatchEstimator functions to make sure the library is loaded.

library(BycatchEstimator)
?bycatchSetup
?bycatchDesign
?bycatchFit
?loadOutputs

You should now be able to run the functions. Try running the examples to make sure it works. For more information see the User’s Guide.

The BycatchEstimator package prints output figures to either html or pdf files.To get started, use the default html outputs.If you select pdf output, you must have a LaTeX package installed on your computer. If you don’t have this, you can install TinyTex, which works and takes up less disk space than other LaTeX options.

Contact ebabcock@miami.edu for help if you can’t get any of this to work.