Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in rep(x[3], diff(x[1:2]) + 1) : invalid 'times' argument #46

Closed
StephPeriquet opened this issue Apr 10, 2019 · 1 comment
Closed

Comments

@StephPeriquet
Copy link

Hi there,

I thought that issue was fixed by one of the previous updates but I still get the same error when using frames_spatial.
This is the code I use:
frames <- frames_spatial(move_data1[1:1500], r_list= MAP, r_times=times ,fade_raster=F, equidistant=F,ext=extent(MAP[[1]]),alpha=1,map_res=1,
tail_length = 25, tail_size = 1, path_size = 3, path_end = "round", path_join = "round", path_mitre = 10,
path_arrow = NULL, path_colours = "red", path_legend = F)

where MAP is a list of 54 rasters and times a list of 54 times as POSIXct. The data is attached.
If I used MAP[1:6] and times[1:6] it works but as soon as I have a times from a slot >6 I get the error. Using MAP[1:7] and times[c(1:6,6)] does work as well...
Any idea where the problem might be coming from?

I also noticed that using MAP[1:7] and times [1:6] (ie r_list and r_times are NOT the same length) works fine without a warning.

Thanks!
movevis_error.RData.zip

@StephPeriquet
Copy link
Author

Well it seems that after a R restart it works ok now... Will keep experimenting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant