forked from PolMine/RcppCWB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatch.Rmd
More file actions
50 lines (37 loc) · 924 Bytes
/
patch.Rmd
File metadata and controls
50 lines (37 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
title: "Patching the CWB"
author: "Andreas Blaette"
date: "January 14, 2022"
output: html_document
editor_options:
chunk_output_type: console
params:
revision: 1690
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(root.dir = path.expand("~/Lab/github/RcppCWB"))
```
## Required libraries
```{r}
library(git2r)
library(fs)
library(magrittr)
library(R6)
```
## Load and configure PatchCWB
```{r load_code_and_data}
source("~/Lab/github/RcppCWB/patch/PatchCWB.R")
```
```{r configure_patch_engine}
P <- PatchCWB$new(
cwb_dir_svn = "~/Lab/tmp/cwb/trunk",
repodir = "~/Lab/github/RcppCWB",
makeheaders = "~/Lab/github_foreign/makeheaders/src/makeheaders",
revision = params$revision
)
```
The CWB version initially included in the RcppCWB package was 3.4.14 (SVN revision 1069), as can be learned from the file `definitions.mk`.
## Run the PatchEngine
```{r run_patch_engine}
P$patch_all()
```