Are you using the 'openai' package from CRAN? I believe it doesn't support assistants as of yet.
I have not tested it myself, but it might be worth checking out this repository: https://github.com/samterfa/openai - it seems to have an implementation for the Assistants endpoint.