You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue with some code similar to below. The underlying issue was that one of my timeout functions was returning a NaN value. Unfortunately, no error was thrown and it took me about 3 hours to track down the root cause. Not sure if this is something you're interested in doing in the future, but I figured I'd log it.
So I reinstalled the master from GitHub, and I'm getting the same issue.
Confirm I have the latest install
> install_github("r-simmer/simmer")
Skipping install of 'simmer' from a github remote, the SHA1 (e7570058) has not changed since last install.
Use `force = TRUE` to force installation
re-run code
> env <- simmer("test_sim")
> env %>%
+ add_resource("Resource1", 1) %>%
+ add_generator("Case", Material1,at(seq(1,3)), mon = 2) %>%
+ run(500)
simmer environment: test_sim | now: NaN | next:
{ Resource: Resource1 | monitored: 1 | server status: 0(1) | queue status: 0(Inf) }
{ Generator: Case | monitored: 2 | n_generated: 3 }
>
> get_mon_arrivals(env)
name start_time end_time activity_time finished replication
1 Case0 1 NaN NaN TRUE 1
2 Case1 2 NaN NaN TRUE 1
3 Case2 3 NaN NaN TRUE 1
> get_mon_arrivals(env)
name start_time end_time activity_time finished replication
1 Case0 1 NA NA TRUE 1
2 Case1 2 NA NA TRUE 1
3 Case2 3 NA NA TRUE 1
Warning in file.copy(files, dest, overwrite = TRUE) :
problem copying .\simmer.dll to C:\Users\marks\Documents\R\win-library\3.3\simmer\libs\x64\simmer.dll: Permission denied
It is not being properly installed. I would say that you are still running an old version of simmer.
Activity
Enchufa2 commentedon May 10, 2017
This was solved in #96. ;-) Sorry for the lost time, and thanks for the report.
mmarks13 commentedon May 10, 2017
Wow. You're one step ahead of me. Haha.
So I reinstalled the master from GitHub, and I'm getting the same issue.
Confirm I have the latest install
re-run code
Enchufa2 commentedon May 10, 2017
You are right: it is detecting NAs but not NaNs. Thanks for checking!
mmarks13 commentedon May 10, 2017
I thought that would be the case, but I'm getting the same thing for NAs as well.
Enchufa2 commentedon May 10, 2017
Apparently, the R/C API for checking NAs and NaNs has some peculiarities... It should be solved now.
mmarks13 commentedon May 10, 2017
Hmm. I reinstalled from github and am getting the same issues.
for NaNs
and NAs
Enchufa2 commentedon May 10, 2017
Force the reinstallation and try again, please.
mmarks13 commentedon May 10, 2017
Enchufa2 commentedon May 10, 2017
Check this, in your log:
It is not being properly installed. I would say that you are still running an old version of simmer.
mmarks13 commentedon May 10, 2017
I would say that you were correct! Fixed that issue and we are good to go. Thanks for the help.