Rstudio session terminate when trying to open camera from opencv

When I try to execute the following code Rstudio terminate the session, however when using R outside Rstudio the issue disappear.
I am using macOS latest as well R the latest version.


On console:
Starting video window (could be behind this window)

Error: Rstudio pop window:
R session Aborted
R encountered a fatal error.
The session was terminated.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.