Print an attribute parsing related warning
| 1764 | |
| 1765 | // Print an attribute parsing related warning |
| 1766 | void SourceFileAttributesParser::attributeWarning( // #nocov start |
| 1767 | const std::string& message, |
| 1768 | const std::string& attribute, |
| 1769 | size_t lineNumber) { |
| 1770 | |
| 1771 | // get basename of source file for warning message |
| 1772 | Rcpp::Function basename = Rcpp::Environment::base_env()["basename"]; |
| 1773 | std::string file = Rcpp::as<std::string>(basename(sourceFile_)); |
| 1774 | |
| 1775 | std::ostringstream ostr; |
| 1776 | ostr << message; |
| 1777 | if (!attribute.empty()) |
| 1778 | ostr << " for " << attribute << " attribute"; |
| 1779 | ostr << " at " << file << ":" << lineNumber; |
| 1780 | |
| 1781 | showWarning(ostr.str()); |
| 1782 | } |
| 1783 | |
| 1784 | void SourceFileAttributesParser::attributeWarning( |
| 1785 | const std::string& message, |
nothing calls this directly
no test coverage detected