I tried to copy the script and paste in my R Markdown:
---
title: "survey"
output: html_document
---
<iframe width="640px" height= "480px" src= "https://forms.office.com/Pages/ResponsePage.aspx?id=DQSIkWdsW0yxEjajBLZtrQAAAAAAAAAAAANAAf8RdFJUNlA2UUgwQ1dCSkZTSzJYWjJHRjVCVjQ0VC4u&embed=true" frameborder= "0" marginwidth= "0" marginheight= "0" style= "border: none; max-width:100%; max-height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen> </iframe>
<div id=surveyDiv>
<script>
window.addEventListener('load', function () {
renderSurvey("surveyDiv");
}, false);
</script>
</div>
but it didn't work.
Can anyone help me?