I want to use the gm package and tried to use a very simple code to check whether it was working (below). The code is working, it shows up in environment, the viewer opens but stays empty. I made sure R and R Studio are up to date. I can only imagine there being a problem with the program, but I can't find any recent posts on this. I also tried out a patch from last year, unsuccessfully.
library(gm)
music <-
Music() +
Meter(4, 4) +
Line(c("C5", "D5", "E5", "F5"))
show(music)