Closed maartenciers closed 5 months ago
What are the dimensions of ASVs
? I suspect they are pretty big and that's resulting in some memory mangling, but it would help to know how big these things are.
They are actually not that big as you would expect.
> dim(ASVs)
[1] 9 2321
This is not reproducible and there is no information to help in guessing. If you are in Linux, can you run this command in shell (bash, zsh, csh what ever) to see the error message.
It is surprising that this crashes the window. Such crashes can happen when we use compiled code, but rarecurve
(and rarefy
it calls) are both implemented in pure R.
I've tried it but I have to say I find it quite weird that it works in terminal but not in vscode terminal. So I guess it's not package related then... Sorry to bother
Before running the command in vscode, say debugonce(rarecurve)
: this steps through the function line by line. Then you can at least see which line crashes even if you cannot see the error message.
This was very helpful! my R crashes when running par() so either this is 4.4.0 related or something else.
The manual says ?par
Each device has its own set of graphical parameters. If the current device is the null device, ‘par’ will open a new device before querying/setting parameters. (What device is controlled by ‘options("device")’.)
So it must be how vscode sets (or does not set) its graphical device.
Does it help if you say plot(1)
before the call? This should open the graphical device, andpar()
should be able to read its graphical parameters.
You are correct it works after running plot(1) . That would explain why it sometimes didn't crash. Thank you so much!
When I'm Running:
It crashes my terminal in vscode. I can't see the error as it crashes to quickly and the terminal disappears.
SessionInfo: