Try using the argument ,text= . Right now you are using the argument ,file= for parse , as this is the first:
> args('parse') function (file = "", n = NULL, text = NULL, prompt = "?", srcfile = NULL, encoding = "unknown") > parse("test ~ test") Error in file(filename, "r") : cannot open the connection > parse(text="test ~ test") expression(test ~ test)
source share