title: Snakemake live user input
body: <p>I have an a bunch of R scripts that follow one another and I wanted to connect them using Snakemake. But I’m running in a problem.</p>
  
  <p>One of my R scripts shows two images and asks a user’s input on how many cluster there are present. The R function for this is [readline]</p>
  
  <p>This query on how many clusters is asked but directly after the next line of code is run. Without an opportunity  to input a number. the rest of the program crashes, since trying to calculate (empty number) of clusters doesn’t really work. Is there a way around this. By getting the values via a function/rule from Snakemake</p>
  
  <p>or is there a other way to work around this issue?</p>