Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
swirlify 似乎无法处理非 ascii 字符(如重音字符)。尝试使用test_lesson()or测试或运行演示时demo_lesson (),会导致文件读取错误。
test_lesson()
demo_lesson ()
1:在readLines(con):
readLines(con)
invalid input found on input connection '..../lesson.yaml'
2:在readLines(con):
incomplete final line found on '..../lesson.yaml'
错误来自 yaml.load_file 函数的 con <- file(input, encoding = "UTF-8") 行
解决方案是在 R studio 中使用 save with encoding 保存 yaml 文件并选择 UTF-8