How to get user_id in the website created by learnr and published in RStudio Connect.

November 5, 2019 @tsaitzu01 tsaitzu01

@tsaitzu01 wrote:

Does anyone have the experience of getting the user_id in the website created by learnr and published in RStudio Connect? We are building a e-learning service for R language with learnr package and RStudio Connect.
For implementing individualized learning log and recommendation, we would like to get the log in ID (with RStudio Connect) of the current user and store all the learning process of this user. However, whatever the current user is, in the back-end build by learnr's "user_id" parameter (https://rstudio.github.io/learnr/publishing.html), we can only get "rstudio-connect" as the user ID. For example, the current user is lillianTest in rstudio connect, so we want to get the “lillianTest” to store in our database, but now it return the “rstudio-connect”.


firebase(1)

Is there any suggestion to get the current user ID with learnr package and RStudio Connect?
Many Thanks,

Posts: 9

Participants: 3

Read full topic

Previous Article
Update link to the correct article for RStudio Connect boards on https://rstudio.github.io/pins/articles/boards-understanding.html
Update link to the correct article for RStudio Connect boards on https://rstudio.github.io/pins/articles/boards-understanding.html

@valeri wrote: @javierluraschi - could you please update the link at the end in ...

Next Article
What is the difference between rstudio-connect and rstudio-pro
What is the difference between rstudio-connect and rstudio-pro

@rr1234 wrote: My understanding from the documents available was rstudio-connect...