Skip to content
forked from NOAA-FIMS/FIMS

A portable version of FIMS that doesn't depend on TMB

License

Notifications You must be signed in to change notification settings

NOAA-FIMS/FIMS-ATL

 
 

Repository files navigation

R-CMD-check Codecov test coverage Lifecycle: experimental

Overview

The repository for development of FIMS.

The NOAA Fisheries Integrated Modeling System is a software system designed and architected to support next-generation fisheries stock assessment, ecosystem, and socioeconomic modeling. A team of experts within NOAA Fisheries is designing and developing the system, and we are advised by the FIMS Council which includes academic, industry, and international partners. The roles of internal and external collaborators are outlined in the governance section of our developer guide. We plan to have an operational software system that is released to the public in 2023. In the meantime, users and developers are welcome to submit feedback using Github issues. Please use the issues under collaborative workflow to make suggestions about the developer guide and the issues under the FIMS software repo for software design and development feedback. You can follow the team discussion here.

Installation

The following software is required:

  • R version 4.0.0 or newer (or RStudio version 1.2.5042 or newer)
  • the remotes R package
  • TMB version 1.8.0 or newer (install instructions are here.)

Windows Users

  • Rtools4 (available from here)

Fixing Fatal Error

Windows users can expect to see some derivative of the following error message in their R session if they have not yet set some flags using {withr}.

Fatal error: can't write <xxx> bytes to section .text of FIMS.o: 'file too big

You can easily fix this by running the following line in your local R session. Note that this call will need to be repeated each time you open a new session.

withr::local_options(pkg.build_extra_flags = FALSE)

This fix removes the debugger flag -O0 -g from being automatically inserted for certain devtools calls (e.g. devtools::load_all()). Windows developers wanting to compile FIMS with the debugger turned on will need to run the above script in addition to manually modifying the call to PKG_CXXFLAGS in the Makevars.win file in the src directory to the following:

PKG_CXXFLAGS =  -DTMB_MODEL  -DTMB_EIGEN_DISABLE_WARNINGS -O1 -g

To turn off the debugger flag, remove the -O1 -g flag:

PKG_CXXFLAGS =  -DTMB_MODEL  -DTMB_EIGEN_DISABLE_WARNINGS

Installing from R

remotes::install_github("NOAA-FIMS/FIMS")
library(FIMS)

Getting Help

Please report bugs along with a minimal reproducible example on github issues

Code of Conduct

All contributors participating and contributing to the FIMS project are expected to adhere to the FIMS Code of Conduct


NOAA Disclaimer

This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an 'as is' basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.

Software code created by U.S. Government employees is not subject to copyright in the United States (17 U.S.C. §105). The United States/Department of Commerce reserve all rights to seek and obtain copyright protection in countries other than the United States for Software authored in its entirety by the Department of Commerce. To this end, the Department of Commerce hereby grants to Recipient a royalty-free, nonexclusive license to use, copy, and create derivative works of the Software outside of the United States.


NOAA Fisheries

U.S. Department of Commerce | National Oceanographic and Atmospheric Administration | NOAA Fisheries

About

A portable version of FIMS that doesn't depend on TMB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 83.6%
  • R 13.9%
  • CMake 2.5%