0

swirlify 似乎无法处理非 ascii 字符(如重音字符)。尝试使用test_lesson()or测试或运行演示时demo_lesson (),会导致文件读取错误。

1:在readLines(con)

invalid input found on input connection '..../lesson.yaml'

2:在readLines(con)

incomplete final line found on '..../lesson.yaml'
4

1 回答 1

0

错误来自 yaml.load_file 函数的 con <- file(input, encoding = "UTF-8") 行

解决方案是在 R studio 中使用 save with encoding 保存 yaml 文件并选择 UTF-8

于 2018-05-27T18:47:10.223 回答