public RPackageManager(RService dispatcher, Journal journal)
{
_journal = journal;
_dispatcher = dispatcher;
//can be executed once here and then no need to use it methods below.
string errmsg = _dispatcher.EvaluateNoReturn("library(tools)");
if (errmsg != null && errmsg.Trim().Length < 1) //error occurred
{
}
}