-
Notifications
You must be signed in to change notification settings - Fork 95
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
Minimal code to generate "#> Error in x$.self$finalize() : attempt to apply non-function" #218
Comments
Thank you. Linking this to #30. |
I tried to reproduce it on Windows 8.1 (8 GB) and Linux (64 GB) but it works fine for me. From my observations, this error is very random and executing the same code doesn't always return this error. Probably the posted code can be simplified to the following form to not download 60 dependent packages: library("terra")
download.file("https://github.com/Nowosad/spDataLarge/raw/master/data/nz_elev.rda",
"nz_elev.rda", mode = "wb")
load("nz_elev.rda")
nz_elev = rast(nz_elev)
plot(nz_elev)
#> Error in x$.self$finalize() : attempt to apply non-function
#> Error in x$.self$finalize() : attempt to apply non-function
#> Error in x$.self$finalize() : attempt to apply non-function
#> Error in (function (x) : attempt to apply non-function
#> Error in (function (x) : attempt to apply non-function
#> Error in x$.self$finalize() : attempt to apply non-function
#> Error in (function (x) : attempt to apply non-function Edit: Reproduced after PC reboot. |
I get the messages the first time I run this, in a new R session (no need to reboot the computer, for me). Here with a further refined approach.
|
It may be worth sending out the minimal example to the Rcpp developers listserv. Perhaps someone on there may be able to provide some insight into why this occurs. |
It appears that this case has now been fixed; and hopefully most, if not all, other cases as well. |
I think this is a minimal code sample to generate this currently mysterious (#165 (comment)) error:
I'm able to generate this message on macOS, Windows and Linux:
Windows
macOS
Ubuntu
The text was updated successfully, but these errors were encountered: