flr / flash Goto Github PK
View Code? Open in Web Editor NEWThe FLash package for fisheries forecasting
Home Page: http://flr-project.org/FLash
The FLash package for fisheries forecasting
Home Page: http://flr-project.org/FLash
build-FLash.log.txt
Good day.
I'm trying to install FLR, and all the packages installed except FLash and FLBRP; FLash got compile errors, and FLBRP failed because its dependency FLash could not be installed.
I have Rtools installed (v3.4, I believe), I have c:\Rtools.... in my Windows 7 Pro PATH, (although the 64-bit tools directory is in my path prior to the 32-bit directory, and I've noticed the build tries to use the
32-bit version of Rtools to build FLash.
Could it be I will need to put the 32-bit version in my path before the 64-bit version (or just put the 32-bit version in PATH and not the 64-bit version) ?
I've attached the log from the FLash build with this message.
Thank you for all the work you did on FLR.
in
setMethod("fwd", signature(object="FLStock", ctrl="missing"),
when there are more that 1 iters recycling means that iters in fwdArray are not set correctly
When I try to compile FLash packages I have this error:
R version 3.3.0 (2016-05-03) -- "Supposedly Educational"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
* installing *source* package ‘FLash’ ...
** libs
g++ -I/usr/include/R/ -DNDEBUG -D_FORTIFY_SOURCE=2 -I../inst/include -fpic -O3 -m64 -I/opt/intel/composerxe/linux/mkl/include -c FLCoreClasses.cpp -o FLCoreClasses.o
g++ -I/usr/include/R/ -DNDEBUG -D_FORTIFY_SOURCE=2 -I../inst/include -fpic -O3 -m64 -I/opt/intel/composerxe/linux/mkl/include -c FLashDLL.cpp -o FLashDLL.o
FLashDLL.cpp: In function ‘SEXPREC* fwd_adolc_FLBiol(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
FLashDLL.cpp:83:14: error: cannot convert ‘bool’ to ‘SEXP {aka SEXPREC*}’ in return
return false;
^~~~~
FLashDLL.cpp: In function ‘SEXPREC* fwd_adolc_FLBiols(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
FLashDLL.cpp:133:14: error: cannot convert ‘bool’ to ‘SEXP {aka SEXPREC*}’ in return
return false;
^~~~~
FLashDLL.cpp:139:14: error: cannot convert ‘bool’ to ‘SEXP {aka SEXPREC*}’ in return
return false;
^~~~~
/usr/lib64/R/etc/Makeconf:141: recipe for target 'FLashDLL.o' failed
make: *** [FLashDLL.o] Error 1
ERROR: compilation failed for package ‘FLash’
Do you have any suggestion?
This no longer works
library(FLash)
library(FLBRP)
data("ple4")
sr =fmle(as.FLSR(ple4,model="bevholt"),control=list(silent=TRUE))
eql =FLBRP(ple4,sr)
ple4=fwd(ple4,f=fbar(ple4)[,2],sr=eql)
Dear author,
I was trying to install Flash package using code
"library(devtools)
install_github("flr/FLash", lib="D:/software/R_library")"
I tried several R and Rtool combinations: 1) R 3.3.2 with Rtool 3.4; (-->"gcc can not found") 2) R 3.2.4 with Rtool 3.3. (-> i guess error starts from "C:\Rtools\gcc-4.6.3\bin\nm.exe: 'sublibs': No such file"
However, neither of them managed to install. Do you know what could possibly lead to my failure of installation? Could u recommend a R-Rtool version combination? or what the log would be if installation is successful, so that I can check my log to figure out where went wrong?
thanks very much in advance!!
Regards,
Chun
I'm having some difficulties compiling FLash with R 3.5.1. Is this a known issue?
I have come across a strange bug when using FLash to do a medium term forecast.
This is reproduced with the ple4 example below.
library(FLCore)
library(FLash)
library(ggplotFL)
data(ple4)
ple_mtf <- stf(ple4, nyears = 10)
ple_sr <- fmle(as.FLSR(ple4, model="bevholt"), control=list(trace=0))
ctrl_target <- data.frame(year = 2018:2027,
quantity = "f",
val = 0.2)
ctrl_f <- fwdControl(ctrl_target)
ple_f_0.2 <- fwd(ple_mtf, ctrl = ctrl_f, sr = ple_sr)
plot(window(ple_f_0.2, start=2000))
ctrl_ssb <- fwdControl(data.frame(year=2027, quantity = "ssb", val=1000000))
ple_ssb <- fwd(ple_mtf, ctrl_ssb, sr = ple_sr)
plot(window(ple_ssb, start=2000))
ple_f_0.2 <- fwd(ple_mtf, ctrl = ctrl_f, sr = ple_sr)
plot(window(ple_f_0.2, start=2000))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.