tokami / TropFishR

Tropical Fisheries Analysis with R
24 stars 19 forks source link

plotLBB.data(lfq) #44

Open IssamHu opened 2 years ago

IssamHu commented 2 years ago

Dear Sir, I'm trying to use the "A manual for the length-based Bayesian biomass estimator within TropFishR" I follow the steps in the vignettes, but when I reach the "plotLBB.data(lfq)" I get error mesage:

> remotes::install_github("tokami/TropFishR")
Downloading GitHub repo tokami/TropFishR@HEAD
Running `R CMD build`...
* checking for file 'C:\Users\asamw\AppData\Local\Temp\RtmpuoSXW2\remotes1a208bc25be\tokami-TropFishR-4f0a13f/DESCRIPTION' ... OK
* preparing 'TropFishR':
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building 'TropFishR_1.6.3.tar.gz'
Installing package into ‘C:/Users/asamw/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
* installing *source* package 'TropFishR' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (TropFishR)
> library(TropFishR)
> ## load data set into R environment
> data("synLFQ8")
> ## plot length-frequency data
> plot(synLFQ8, Fname = "catch")
> ## aggregate lfq data per year
> lfq <- lfqModify(synLFQ8, aggregate = "year")
> ## plot lfq data in standard TropFishR manner
> plot(lfq, Fname = "catch")
> ## plot data in LBB manner
> plotLBB.data(lfq)
Error in plotLBB.data(lfq) : could not find function "plotLBB.data"

Please help me with this issue as I'm intending to use this method in my data analysis. Thanks Issam