File: move_to_correct_dir.patch

package info (click to toggle)
r-cran-fansi 1.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,480 kB
  • sloc: ansic: 4,578; sh: 13; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 719 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Desccription: Hack to make upstream test pass
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 21 Nov 2023 08:11:41 +0100
Forwarded: https://github.com/brodieG/fansi/issues/76

--- a/tests/special/_pre/lorem-utf8.R
+++ b/tests/special/_pre/lorem-utf8.R
@@ -28,6 +28,8 @@ Encoding(lorem.cn) <- "UTF-8"
 # Encoding(cn.split) <- "UTF-8"
 # lorem.cn.phrases <- unlist(strsplit(lorem.cn, cn.split, perl=TRUE))
 # saveRDS(lorem.cn.phrases, 'unitizer/_pre/lorem.data/lorem.cn.phrases.RDS')
+# Move to correct directory since we are currently in directory special/
+setwd("..")
 lorem.cn.phrases <- readRDS('unitizer/_pre/lorem.data/lorem.cn.phrases.RDS')
 
 # mix of wide and normal characters and colors and styles