We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sexp
bool
1 parent 35a1905 commit 1eb64a7Copy full SHA for 1eb64a7
src/zip.cpp
@@ -2,8 +2,10 @@
2
3
#include "rapidxml/rapidxml_print.h"
4
5
+#include "cpp11/as.hpp"
6
#include "cpp11/function.hpp"
7
#include "cpp11/raws.hpp"
8
+#include "cpp11/sexp.hpp"
9
10
std::string zip_buffer(const std::string& zip_path,
11
const std::string& file_path) {
@@ -19,7 +21,8 @@ std::string zip_buffer(const std::string& zip_path,
19
21
bool zip_has_file(const std::string& zip_path,
20
22
23
cpp11::function zip_has_file = cpp11::package("readxl")["zip_has_file"];
- return zip_has_file(zip_path, file_path);
24
+ cpp11::sexp out = zip_has_file(zip_path, file_path);
25
+ return cpp11::as_cpp<bool>(out);
26
}
27
28
std::string xml_print(std::string xml) {
0 commit comments