Skip to content

Commit 2956ca1

Browse files
author
SymbolixAU
committed
re-downloaded
1 parent 916868a commit 2956ca1

File tree

5 files changed

+16
-47
lines changed

5 files changed

+16
-47
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5+
*.so
6+
*.o
7+
src/*.o
8+
src/*.so
9+
src/*.dll
10+
inst/doc
11+
.DS_Store

R/RcppExports.R

-7
This file was deleted.

src/Makevars

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
CXX_STD = CXX14
2-
CXX=clang++
2+
33
PKG_CPPFLAGS = -I../inst/include/

src/RcppExports.cpp

-27
This file was deleted.

src/dummy.cpp

+8-12
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,24 @@
77
#define RAPIDJSON_ASSERT(x) ((void)0)
88
#endif // RAPIDJSON_ASSERT
99

10+
/*
11+
* git clone https://github.com/tencent/rapidjson --branch v1.1.0 --depth 1
12+
*/
13+
14+
15+
#include "rapidjson/document.h"
16+
/*
1017
#include "rapidjson/error/en.h"
1118
#include "rapidjson/filereadstream.h"
1219
#include "rapidjson/schema.h"
1320
#include "rapidjson/stringbuffer.h"
1421
#include "rapidjson/prettywriter.h"
1522
16-
#include "rapidjson/document.h"
1723
#include "rapidjson/allocators.h"
1824
using namespace rapidjson;
19-
25+
*/
2026

2127
#include <Rcpp.h>
2228
using namespace Rcpp;
2329

2430

25-
// [[Rcpp::export]]
26-
void testRapidjson(const char* json) {
27-
28-
Document document;
29-
document.Parse(json);
30-
31-
std::string s = document["hello"].GetString();
32-
Rcpp::Rcout << s << std::endl;
33-
34-
}

0 commit comments

Comments
 (0)