This is a great question !
Already asked my self how to do that once. It was not so obvious how learnr and RStudio Connect work together.
@cole what you are proposing works very well for shiny apps. For learner tutorial, as pointed by @tsaitzu01, there is a special mechanism where learn uses, per the doc
Account name of server user executing the tutorial
@tsaitzu01 I think that is why you get rstudio-connect because by default, it is the user that executes the R process on RStudio Connect.
One easy way so solve this would be to change the user. It is possible if your admin configured this feature:
This would allow the identified user to run the tutorial in its name, and then it would be recorded by learnr. I did no follow this way because our RStudio Connect server does not support this feature yet.
@cole, I tried with shiny usage data but this does not seem to be the way learnr is working. So I did not manage to make it work.
Also, that is more a long shot but there is way to customise the learnr identifier:
https://rstudio.github.io/learnr/publishing.html#custom-identifiers
That would mean having the username pass through the header using rstudio connect. Currently I don't think this is the case. Maybe there is some configuration that feasible with Connect to use this feature.
Anyway, this is another thing I encountered on a long TODO I have. I could make a reproductible example also when I find time.
@cole, do you already have one ? Did you manage to make the Tutorial Identifier from learn works with RStudio Connect ? The only way I found wes User Account for Processes