message: relaxed checks on inits file
diff: @@ -126,13 +126,7 @@ context_vector get_vec_var_context(const std::string &file, size_t num_chains) {
  if (file_ending == ".json") {
  using cmdstan::json::json_data;
  return std::make_shared<json_data>(json_data(stream));
  - } else if (file_ending == ".csv") {
  - using stan::io::dump;
  - return std::make_shared<stan::io::dump>(dump(stream));
  } else {
  - std::stringstream msg;
  - msg << "file ending of " << file_ending << " is not supported by cmdstan";
  - throw std::invalid_argument(msg.str());
  using stan::io::dump;
  return std::make_shared<dump>(dump(stream));
  }
  @@ -146,17 +140,12 @@ context_vector get_vec_var_context(const std::string &file, size_t num_chains) {
  size_t file_marker_pos = file.find_last_of(".");
  if (file_marker_pos > file.size()) {
  std::stringstream msg;
  - msg << "Found: \"" << file
  - << "\" but user specied files must end in .json or .csv";
  + msg << "Invalid inits filename: \"" << file
  + << "\", expecting suffix \".json\" or \".R\"";
  throw std::invalid_argument(msg.str());
  }
  std::string file_name = file.substr(0, file_marker_pos);
  std::string file_ending = file.substr(file_marker_pos, file.size());
  - if (file_ending != ".json" && file_ending != ".csv") {
  - std::stringstream msg;
  - msg << "file ending of " << file_ending << " is not supported by cmdstan";
  - throw std::invalid_argument(msg.str());
  - }
  std::string file_1
  = std::string(file_name + "_" + std::to_string(1) + file_ending);
  std::fstream stream_1(file_1.c_str(), std::fstream::in);
  