R:source_gist无效

Cau*_*chy 13 r devtools

我试图source_gistdevtools包中使用但我遇到一个错误:

> library(devtools)
> source_gist("524eade46135f6348140")
Error in r_files[[which]] : invalid subscript type 'closure'
Run Code Online (Sandbox Code Playgroud)

谢谢你的建议.

ada*_*ith 13

同意这是一个错误,我看到你提交了.

临时解决方法是指定filename选项:

devtools::source_gist("524eade46135f6348140", filename = "ggplot_smooth_func.R")
Run Code Online (Sandbox Code Playgroud)