Azure / Microsoft365R

R SDK for interacting with Microsoft 365 APIs
Other
313 stars 44 forks source link

Error when specifying app id #78

Closed eveyp closed 3 years ago

eveyp commented 3 years ago

When using the authentication workaround to include app = "04b07795-8ddb-461a-bbee-02f9e1bf7b46", I'm getting an error: Error in as.vector(x, "character") : cannot coerce type 'environment' to vector of type 'character'

This isn't happening when I leave off the app argument.

For example: get_team("Team Name") doesn't throw an error.

get_team("Team Name", app = "04b07795-8ddb-461a-bbee-02f9e1bf7b46") leads to the error: Error in as.vector(x, "character") : cannot coerce type 'environment' to vector of type 'character'

hongooi73 commented 3 years ago

I can't reproduce this error. Post the full error message, your sessionInfo() and what traceback() shows.

hongooi73 commented 3 years ago

Also, if get_team works without specifying an app, that means your org has approved the Microsoft365R app id for use, so you shouldn't need a workaround