private void OpenSinkFile(string fullpathfilename, string mode)
{
string unixstylepath = fullpathfilename.Replace("\\", "/");
sinkcmd.CommandSyntax = "fp<- file(\"" + unixstylepath + "\", open=\"" + mode + "\")";// command
analytics.ExecuteR(sinkcmd, false, false);
}