Let me try to explain what I have understood (or guessed!) so far:
- You have a questionnaire that is externally hosted.
- You have R code that produces a recommendation for the participant based on the answers.
- You want to provide these recommendations to the participant right after they have filled out the questionnaire.
This leads me to further questions:
- What possibilities does the externally hosted questionnaire offer? Could you, e.g. call an API with the answers as argument and present the result to the user? Could you forward the user to a different web page that displays the recommendations?
- Especially if the existing questionnaire is not very flexible: Would it be possible to change how the questionnaire is hosted?