Hello, Marion!
I've recently found this great package and have been experimenting with it, so I do not know much about it. But are you using the development version of the package? I remember getting the same error when I tried to use the standalone version of this function. I was able to run the GIRF function with the development version of the package, although I can't seem to distinguish the GIRF's between the regimes (in fact, if anyone knows how to do this, I would be very grateful).
Just in case, the latest development version of the package can be installed with following code:
library(remotes)
install_github("MatthieuStigler/tsDyn/tsDyn", ref = "Dev94", force = T)
Hope I could help somehow!
Regards,
Luan