[FLR-list] problem with FLSAM

Hintzen, Niels niels.hintzen at wur.nl
Tue Sep 26 10:10:31 CEST 2017


Agree, I totally mis-read that one.


-----Original Message-----
From: flr-list-bounces at lists.r-forge.r-project.org [mailto:flr-list-bounces at lists.r-forge.r-project.org] On Behalf Of Iago.MOSQUEIRA at ec.europa.eu
Sent: dinsdag 26 september 2017 9:37
To: flr-list at flr-project.org
Subject: Re: [FLR-list] problem with FLSAM

The comment in line 42 in the current code is totally harmless

https://github.com/flr/FLSAM/blob/master/R/methods.r#L42

Works in 3.4, and the error is about converting the FLStock to data.frame which merge does not do.


Iago

--
Dr Iago Mosqueira

European Commission
DG Joint Research Centre
Directorate D - Sustainable Resources
Unit D.02 Water and Marine Resources

TP 051, Via Enrico Fermi 2749
I-21027 Ispra (VA), Italy

Phone : +39 0332 785413

iago.mosqueira at ec.europa.eu

________________________________________
From: flr-list-bounces at lists.r-forge.r-project.org [flr-list-bounces at lists.r-forge.r-project.org] on behalf of Hintzen, Niels [niels.hintzen at wur.nl]
Sent: 26 September 2017 09:27
To: flr-list at flr-project.org
Subject: Re: [FLR-list] problem with FLSAM

Line 42 of methods.r seems to contain a #, probably that is the problem. Don't have time to check now, but could look later this week.

For the time being, doing: stock at harvest <- sam at harvest stock at stock.n <- sam at stock.n would work too

Niels

-----Original Message-----
From: flr-list-bounces at lists.r-forge.r-project.org [mailto:flr-list-bounces at lists.r-forge.r-project.org] On Behalf Of Iago.MOSQUEIRA at ec.europa.eu
Sent: dinsdag 26 september 2017 9:24
To: flr-list at flr-project.org
Subject: Re: [FLR-list] problem with FLSAM

Hi,

I can replicate the problem but only in R 3.3 in Windows, both R 3.4 or running in Linux work.

Is there any chance you can move to R 3.4 for the time being? I can try to take a look at this with Niels, but not before next week

Best,


Iago

--
Dr Iago Mosqueira

European Commission
DG Joint Research Centre
Directorate D - Sustainable Resources
Unit D.02 Water and Marine Resources

TP 051, Via Enrico Fermi 2749
I-21027 Ispra (VA), Italy

Phone : +39 0332 785413

iago.mosqueira at ec.europa.eu

________________________________________
From: flr-list-bounces at lists.r-forge.r-project.org [flr-list-bounces at lists.r-forge.r-project.org] on behalf of Silvia Angelini [silvia.angelini at an.ismar.cnr.it]
Sent: 25 September 2017 21:10
To: flr-list at flr-project.org
Subject: Re: [FLR-list] problem with FLSAM

Yes! Just run. Hereunder the results:

> is(STOCK)
[1] "FLStock" "FLS"     "FLComp"

> is(STOCK.sam)
[1] "FLSAM"  "FLComp"

Thanks so much, Iago.
Silvia

> Can you please run
>
>
>
> is(STOCK)
>
>
>
> and
>
>
>
> is(STOCK.sam)?
>
>
>
>
>
> Iago
>
>
>
>
>
> ---- On Mon, 25 Sep 2017 17:30:10 +0200 Silvia Angelini 
> <silvia.angelini at an.ismar.cnr.it> wrote ----
>
>
>
>
> Hi all,
>
> I'm running an assessment using FLSAM. I'm able to run the assessment, 
> but
>
> I'm not able to upload the stock object with the results.
>
>
>
> This command doesn't work: STOCK <- STOCK + STOCK.sam.
>
> And I've got this error:
>
> Error in as.data.frame.default(x) :
>
>  cannot coerce class "structure("FLStock", package = "FLCore")" to a
>
> data.frame
>
>
>
> I'm using version 3.3.2 of r and version 2.6.5 of FLCore.
>
>
>
> Thank you so much in advance for your help.
>
>
>
> Silvia
>
>
>
>
>
> --
>
> Dr. Silvia Angelini, Ph.D.
>
> Institute of Marine Science (CNR-ISMAR)
>
> Largo Fiera della Pesca
>
> 60125, Ancona, Italy
>
> Phone: 071-2078833
>
> Fax: 071-55313
>
> e-mail: silvia.angelini at an.ismar.cnr.it
>
>
>
> _______________________________________________
>
> flr-list mailing list
>
> flr-list at flr-project.org
>
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
>
>
>
>
>
>
> _______________________________________________
> flr-list mailing list
> flr-list at flr-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
>


--
Dr. Silvia Angelini, Ph.D.
Institute of Marine Science (CNR-ISMAR)
Largo Fiera della Pesca
60125, Ancona, Italy
Phone: 071-2078833
Fax: 071-55313
e-mail: silvia.angelini at an.ismar.cnr.it

_______________________________________________
flr-list mailing list
flr-list at flr-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
_______________________________________________
flr-list mailing list
flr-list at flr-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
_______________________________________________
flr-list mailing list
flr-list at flr-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
_______________________________________________
flr-list mailing list
flr-list at flr-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list


More information about the flr-list mailing list