Commit f70b7cd4 authored by kartoffelsalat's avatar kartoffelsalat

print actual file name of posteriors plot

parent f8cbe0d0
......@@ -435,6 +435,7 @@ void Visualizer::visualizePosterior(unsigned int noOfChains) {
RplotFile << "# produce diagnostic plots" << std::endl;
RplotFile << "ggmcmc(ggs(chains), file = paste0('img/', basename('" << this->fileOut << "-ggmcmc.pdf')))" << std::endl;
RplotFile << "print(paste0('Plotted results to ', dirname('" << this->fileOut << "'), '/img/', basename('" << this->fileOut << "-ggmcmc.pdf')))" << std::endl;
RplotFile.close();
......@@ -443,7 +444,7 @@ void Visualizer::visualizePosterior(unsigned int noOfChains) {
if (system(startplotR.c_str())) {
std::cout << "R failed to plot. You can retry with the command 'R --slave -f " << this->fileOut << "-plot.R' (You might want to disable the setwd() command in that file first.)" << std::endl;
} else {
std::cout << "R has plotted, see the file img/" << this->fileOut << "-ggmcmc.pdf" << std::endl;
std::cout << "R has plotted, see above for the path to the image file." << std::endl;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment