Skip to content

Commit

Permalink
Updating dependency...
Browse files Browse the repository at this point in the history
... on FishStatsUtils to install version 2.0.0 if using earlier version
  • Loading branch information
James.Thorson authored and James.Thorson committed May 10, 2019
1 parent a1470a8 commit c4dcb13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

# Load `FishStatsUtils` via .onAttach because importFrom wasn't working
# Also requries moving FishStatsUtils to SUGGESTS, so that it doesn't isntall main branch
if( !"FishStatsUtils" %in% utils::installed.packages()[,1] || utils::packageVersion("FishStatsUtils") < numeric_version("1.1.0") ){
packageStartupMessage("Updating package FishStatsUtils because previously using version < 1.1.0")
devtools::install_github("james-thorson/FishStatsUtils", ref="development")
if( !"FishStatsUtils" %in% utils::installed.packages()[,1] || utils::packageVersion("FishStatsUtils") < numeric_version("2.0.0") ){
packageStartupMessage("Updating package FishStatsUtils because previously using version < 2.0.0")
devtools::install_github("james-thorson/FishStatsUtils", ref="2.0.0")
}
packageStartupMessage( "Loading package `FishStatsUtils`" )
library(FishStatsUtils)
Expand Down

0 comments on commit c4dcb13

Please sign in to comment.