OK, so what you want is a way to show the R-report for a pre-filtered dataset. This requires two things
1) A way to pick the participant you want to view
2) A way to generate the custom URL that shows the filtered R report
Let's take this backward. The URL for your R report (when you get to it), looks something like this:
https://xxx.sbri.org/labkey/reports/MyStudy/runRReport.view?reportId=221&query.queryName=MyQuery&schemaName=study
Note the parameters reportId, query.queryName and schemaName. When you filter the data to a particular participant it adds a filter of the form query.ParticipantId~eq=700010019 on the end like this
https://xxx.sbri.org/labkey/reports/MyStudy/runRReport.view?reportId=221&query.queryName=MyQuery&schemaName=study&query.ParticipantId~eq=700010019
So what we want is a form where users can enter a participantID and create the URL. You can create an HTML wiki that does that:
<form method=GET action='/labkey/reports/MyStudy/runRReport.view'>
<input type=hidden name="reportId" value="221">
<input type=hidden name="query.queryName" value="MyQuery">
<input type=hidden name="schemaName" value="Study">
<table>
<tr>
<td>Show clinical and specimen summary for participant </td>
<td>
<input type="text" name="query.participantId~eq"/>
</td>
<td><input align=bottom type=image src='/labkey/Go.button'></td>
</tr>
</table>
</form>
Things to note:
* The parameters are converted to hidden parameters in the form. They'll get attached to the form when the go button is clicked
* The participantId~eq parameter will get filled in with the participantId typed in the text box
It would also be cool to add autocomplete to that input box based on all available participant id's. If you are an site administrator you can create script in your HTML wikis. Turns out there's a bit of script you can put in your wiki that allows just this autocomplete. Here's what you'd do
<script>LABKEY.requiresScript('completion.js')</script>
<form method=GET action='/labkey/reports/MyStudy/runRReport.view'>
<input type=hidden name=reportId value="221">
<input type=hidden name="query.queryName" value="MyQuery">
<input type=hidden name="schemaName" value="Study">
<table>
<tr>
<td>Show clinical and specimen summary for participant </td>
<td>
<input type="text" onkeyup="return handleChange(this, event, '/labkey/Study-Samples/MyStudy/autoComplete.view?type=ParticpantId&prefix=');" value="" autocomplete="off" onblur="hideCompletionDiv();" onkeydown="return ctrlKeyCheck(event);" name="query.participantId~eq"/>
</td>
<td><input align=bottom type=image src='/labkey/Go.button'></td>
</tr>
</table>
</form>
There are two changes here
* The script to include completion.js, which provides a handleChange function
* The handleChange javascript funtion takes a path to the folder with all your participants. Replace MyStudy with the path to your study folder on your server