Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R: source_gist not working

Tags:

r

devtools

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.

like image 571
Cauchy Avatar asked Jul 13 '16 08:07

Cauchy


1 Answers

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")
like image 93
adamdsmith Avatar answered Nov 04 '22 02:11

adamdsmith