Skip to content

Commit

Permalink
removed use of file_exists from c++ code
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverVoogd committed Jul 31, 2023
1 parent 0e35bcc commit 7b34d2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utility/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,10 @@ inline void rename_file(std::string from, std::string to) {
Rcpp::Function rename("file.rename");
rename(Rcpp::_["from"]=from, Rcpp::_["to"]=to);
}
inline bool file_exists(std::string file) {
Rcpp::Function fileExists("file.exists");
return Rcpp::as<bool> (fileExists(file));
}
// inline bool file_exists(std::string file) {
// Rcpp::Function fileExists("file.exists");
// return Rcpp::as<bool> (fileExists(file));
// }

/*
checks whether an int vector is strictly increasing
Expand Down

0 comments on commit 7b34d2c

Please sign in to comment.