        outputObj <- ""
        brew(mapTemplate, output=textConnection("outputObj"))
        return(outputObj)

returns :

Erreur dans brew(mapTemplate, output = textConnection("outputObj")) : 
  output connection is not writeable