create from R list
| 54 | |
| 55 | // create from R list |
| 56 | explicit FileInfo(const List& fileInfo) { // #nocov start |
| 57 | path_ = as<std::string>(fileInfo["path"]); |
| 58 | exists_ = as<bool>(fileInfo["exists"]); |
| 59 | lastModified_ = as<double>(fileInfo["lastModified"]); |
| 60 | } // #nocov end |
| 61 | |
| 62 | // convert to R list |
| 63 | List toList() const { |
nothing calls this directly
no outgoing calls
no test coverage detected