Git Product home page Git Product logo

flash's Issues

Compilation failing for 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.

fwd bug

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

Compilation error under linux 64 bit and R-mkl

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?

fwd does not work for 1 year

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)

can not install Flash package.

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

FLash with R 3.5.x

I'm having some difficulties compiling FLash with R 3.5.1. Is this a known issue?

FLash bug

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))

first with f target

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))

now with ssb target

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))

doesnt work

now try f target afgain (exactly like before)

ple_f_0.2 <- fwd(ple_mtf, ctrl = ctrl_f, sr = ple_sr)
plot(window(ple_f_0.2, start=2000))

doesnt work anymore either.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.