2
It is possible to ask a question and receive an input while executing a function?
Example:
formateCdoispontos<-function(){
  print('Tem certeza que quer fazer isso? (S/N)')
  ...
  if(resposta=='N')break
  ...
  }
Or all information is restricted to function input?
 Thus:
formateCdoispontos<-function(certeza = 'N'){
  if(resposta=='N')break
  ...
  }