log.info("inserting datafile: " + swl.getSweaveString());
if (datafileTag == null) { //add whole datafile
System.out.println("Adding... ");
datafileTag = new DatafilesSweaveTag();
datafileTag.setLatexPos(position);
//Insert before @\n
datafileTag.getAttachedSweaveStrings().add(swl);
addTagAtCursor(datafileTag);