好,我的第一个问题。
我必须在RStudio中写作业,而我正在使用Rmarkdown获得不错的输出。我妈妈的舌头不是英语,所以有时我在语法上有些麻烦。拼写检查效果很好(只需按F /让它通过),但是我找不到语法。有没有办法将诸如Grammarly之类的软件引入RStudio?我用谷歌搜索,但没有发现任何东西。我希望使用开源语法检查器。
一些例子:
他步行去学校。
我知道RStudio很酷。
解释系数可能很棘手。
我知道第一句话中步行必须转换为步行。
在第二句话中,Know必须写为Know。
在第三句中,系数开头必须为The,并且必须将其写为小写。
在这样的网站上,我正在用语法编写。
小智 3
没有基本的 R 解。对于 Rmd 或 md 文件有一个解决方案:
devtools::install_github("ropenscilabs/gramr")
write_good_ip() # run the write-good linter on text in a currently active Rmd file in RStudio
write_good_file("my_file.Rmd") # run the write-good linter on text in an Rmd file (RStudio not required)
run_grammar_checker("example.rmd") # run the write-good linter interactively
# Example output:
# index offset reason
# 1 15 12 "been defined" may be passive voice
# 2 49 8 "suddenly" can weaken meaning
Run Code Online (Sandbox Code Playgroud)