 (def ^:private default-packages ["RJSONIO"])
 
 (def ^:private load-template
-  (str "l = tryCatch(require('%1$s'), warning=function(w) w);
-        if(is(l, 'warning')) print(l[1])"))
+  (str "l = tryCatch(require('%1$s'), warning=function(w) w);"
+       "if(is(l, 'warning')) print(l[1])"))
 
 (def ^:private bootstrap-template "#AUTO-GENERATED\nsource('%s')\n")
 

    (spit (io/resource "bootstrap.R") bootstrap)))

(defn initialize
  [file packages]
  (create-bootstrap packages)
  (sh (io/as-relative-path "scripts/start.sh")))


      (str e))))

(defn execute
  "Executes, in R, the method present in the file with the given params.
   Callback is function taking one argument which can serve to
   allow OOB updates from the R session
   See resources/wrap.R for details."
  [file method params callback]
  (with-open [R (pirate/connect)]
    (try
