andrewzm / IDE

Integro-difference equation spatio-temporal modelling
1 stars 1 forks source link

Error with predict() function #6

Open FerRacimo opened 3 years ago

FerRacimo commented 3 years ago

When trying to run the predict() function, following the tutorial in the Spatio-Temporal Statistics with R book, I get the following error:

ST_grid_df <- predict(fit_results_sim1$IDEmodel) Error in distR_C(x1, x2) : could not find function "distR_C"

I'm guessing this function is missing internally? I couldn't find another library that contained it.

Thanks, Fernando

FerRacimo commented 3 years ago

Apparently, this only seems to happen if I load the "STRbook" library after loading the "IDE" library: library("IDE") library("STRbook")

But not when only loading the "IDE" library (after restarting the R session): library("IDE")

Perhaps there is a conflict between two functions with the same name in these libraries?

andrewzm commented 3 years ago

Hi Fernando, glad to see you have a workaround. I've seen this error before and I'm not sure what's causing it... it's quite erratic. What version of R are you using?

On Sat, Nov 28, 2020 at 3:40 AM Fernando Racimo notifications@github.com wrote:

Apparently, this only seems to happen if I load the "STRbook" library after loading the "IDE" library: library("IDE") library("STRbook")

But not when only loading the "IDE" library (after restarting the R session): library("IDE")

Perhaps there is a conflict between two functions with the same name in these libraries?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-734915006, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEU3PLJBNMTCFMAIFWKWLSR7I6XANCNFSM4UEF2GNA .

FerRacimo commented 3 years ago

Thanks for the quick response. It's version 4.0.3.

Cheers, Fernando

On Fri, Nov 27, 2020 at 9:04 PM Andrew Zammit Mangion < notifications@github.com> wrote:

Hi Fernando, glad to see you have a workaround. I've seen this error before and I'm not sure what's causing it... it's quite erratic. What version of R are you using?

On Sat, Nov 28, 2020 at 3:40 AM Fernando Racimo notifications@github.com wrote:

Apparently, this only seems to happen if I load the "STRbook" library after loading the "IDE" library: library("IDE") library("STRbook")

But not when only loading the "IDE" library (after restarting the R session): library("IDE")

Perhaps there is a conflict between two functions with the same name in these libraries?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-734915006, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AABEU3PLJBNMTCFMAIFWKWLSR7I6XANCNFSM4UEF2GNA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-734969963, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLXSATENXNXKIIZCMNX6GTSSAA3VANCNFSM4UEF2GNA .

-- Fernando Racimo, PhD Associate Professor of Population Genetics Globe Institute University of Copenhagen Øster Voldgade 5-7, DK-1350 Copenhagen, Denmark

andrewzm commented 3 years ago

Hi Fernando, I found a code snippet in the package which shouldn't have been there and which seems to cause problems only on 4.0 as I hadn't seen this error before. Can you please try again and let me know if it has been resolved? You will need to re-install STRbook from github. Thanks.

Regards, Andrew

On Sat, Nov 28, 2020 at 9:00 AM Fernando Racimo notifications@github.com wrote:

Thanks for the quick response. It's version 4.0.3.

Cheers, Fernando

On Fri, Nov 27, 2020 at 9:04 PM Andrew Zammit Mangion < notifications@github.com> wrote:

Hi Fernando, glad to see you have a workaround. I've seen this error before and I'm not sure what's causing it... it's quite erratic. What version of R are you using?

On Sat, Nov 28, 2020 at 3:40 AM Fernando Racimo < notifications@github.com> wrote:

Apparently, this only seems to happen if I load the "STRbook" library after loading the "IDE" library: library("IDE") library("STRbook")

But not when only loading the "IDE" library (after restarting the R session): library("IDE")

Perhaps there is a conflict between two functions with the same name in these libraries?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-734915006, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABEU3PLJBNMTCFMAIFWKWLSR7I6XANCNFSM4UEF2GNA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-734969963, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABLXSATENXNXKIIZCMNX6GTSSAA3VANCNFSM4UEF2GNA

.

-- Fernando Racimo, PhD Associate Professor of Population Genetics Globe Institute University of Copenhagen Øster Voldgade 5-7, DK-1350 Copenhagen, Denmark

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-734998633, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEU3NS7HLIF7MFKI6G3ZLSSAOQLANCNFSM4UEF2GNA .

FerRacimo commented 3 years ago

Dear Andrew,

Thant has solved the issue. Thanks!

Best, Fernando

On Mon, Dec 14, 2020 at 10:26 PM Andrew Zammit Mangion < notifications@github.com> wrote:

Hi Fernando, I found a code snippet in the package which shouldn't have been there and which seems to cause problems only on 4.0 as I hadn't seen this error before. Can you please try again and let me know if it has been resolved? You will need to re-install STRbook from github. Thanks.

Regards, Andrew

On Sat, Nov 28, 2020 at 9:00 AM Fernando Racimo notifications@github.com wrote:

Thanks for the quick response. It's version 4.0.3.

Cheers, Fernando

On Fri, Nov 27, 2020 at 9:04 PM Andrew Zammit Mangion < notifications@github.com> wrote:

Hi Fernando, glad to see you have a workaround. I've seen this error before and I'm not sure what's causing it... it's quite erratic. What version of R are you using?

On Sat, Nov 28, 2020 at 3:40 AM Fernando Racimo < notifications@github.com> wrote:

Apparently, this only seems to happen if I load the "STRbook" library after loading the "IDE" library: library("IDE") library("STRbook")

But not when only loading the "IDE" library (after restarting the R session): library("IDE")

Perhaps there is a conflict between two functions with the same name in these libraries?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-734915006, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABEU3PLJBNMTCFMAIFWKWLSR7I6XANCNFSM4UEF2GNA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-734969963, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABLXSATENXNXKIIZCMNX6GTSSAA3VANCNFSM4UEF2GNA

.

-- Fernando Racimo, PhD Associate Professor of Population Genetics Globe Institute University of Copenhagen Øster Voldgade 5-7, DK-1350 Copenhagen, Denmark

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-734998633, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AABEU3NS7HLIF7MFKI6G3ZLSSAOQLANCNFSM4UEF2GNA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-744720349, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLXSARUPW5DDRBLCMFUY3DSUZ7HJANCNFSM4UEF2GNA .

-- Fernando Racimo, PhD Associate Professor of Population Genetics Globe Institute University of Copenhagen Øster Voldgade 5-7, DK-1350 Copenhagen, Denmark

andrewzm commented 3 years ago

Great, thanks!

On Tue, Dec 15, 2020 at 11:10 PM Fernando Racimo notifications@github.com wrote:

Dear Andrew,

Thant has solved the issue. Thanks!

Best, Fernando

On Mon, Dec 14, 2020 at 10:26 PM Andrew Zammit Mangion < notifications@github.com> wrote:

Hi Fernando, I found a code snippet in the package which shouldn't have been there and which seems to cause problems only on 4.0 as I hadn't seen this error before. Can you please try again and let me know if it has been resolved? You will need to re-install STRbook from github. Thanks.

Regards, Andrew

On Sat, Nov 28, 2020 at 9:00 AM Fernando Racimo < notifications@github.com> wrote:

Thanks for the quick response. It's version 4.0.3.

Cheers, Fernando

On Fri, Nov 27, 2020 at 9:04 PM Andrew Zammit Mangion < notifications@github.com> wrote:

Hi Fernando, glad to see you have a workaround. I've seen this error before and I'm not sure what's causing it... it's quite erratic. What version of R are you using?

On Sat, Nov 28, 2020 at 3:40 AM Fernando Racimo < notifications@github.com> wrote:

Apparently, this only seems to happen if I load the "STRbook" library after loading the "IDE" library: library("IDE") library("STRbook")

But not when only loading the "IDE" library (after restarting the R session): library("IDE")

Perhaps there is a conflict between two functions with the same name in these libraries?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-734915006, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABEU3PLJBNMTCFMAIFWKWLSR7I6XANCNFSM4UEF2GNA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-734969963, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABLXSATENXNXKIIZCMNX6GTSSAA3VANCNFSM4UEF2GNA

.

-- Fernando Racimo, PhD Associate Professor of Population Genetics Globe Institute University of Copenhagen Øster Voldgade 5-7, DK-1350 Copenhagen, Denmark

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-734998633, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABEU3NS7HLIF7MFKI6G3ZLSSAOQLANCNFSM4UEF2GNA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-744720349, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABLXSARUPW5DDRBLCMFUY3DSUZ7HJANCNFSM4UEF2GNA

.

-- Fernando Racimo, PhD Associate Professor of Population Genetics Globe Institute University of Copenhagen Øster Voldgade 5-7, DK-1350 Copenhagen, Denmark

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andrewzm/IDE/issues/6#issuecomment-745248937, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEU3PAGSMMMQKPZ5UCAYDSU5G4NANCNFSM4UEF2GNA .