Search code examples
rdevtools

R: source_gist not working


I am trying to use source_gist from the devtools package but I am encountering an error:

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

Thanks for any advice.


Solution

  • Agree this is a bug, which I see you've submitted.

    A temporary workaround is to specify the filename option:

    devtools::source_gist("524eade46135f6348140", filename = "ggplot_smooth_func.R")