by Didier Renard » Fri Apr 01, 2022 7:39 pm
Hello
I am a bit lost in your question.
When I see your call to db.grid.init(), I can simply see that there is an argument 'x0' which is not in the prototype of the function. At best, this argument will be ignored. Notice that there is no statement that this argument is meaningless. The reason is that db.grid.init contains a "..." argument: this is used to pass arguments to internal functions without having to specify them. In the case of db.grid.init(), these unnamed arguments are passed to db.polygon) function called internally.
Having said so, I do not understand the traceback that you added to your post. First I could not reproduce it... but I am not sure of the values assigned to the arguments. Due a specific setup of your R package, it may happen that the useless argument (i.e. 'x0') is conflicting with an internal variable also named 'x0'. So, may be, if you suppress this spurious argument, everything get back to correct situation.
If not, let me know. Thanks