Fixed #8093: Error on R-export (syntax) while running as a plugin