Skip to content

demo("gist") fails with 0.2 because stringr is not loaded / str_c can't be found #82

@dtenenba

Description

@dtenenba

Maybe this is fixed already in github but sadly I'm limited to what is available on CRAN.

> library(httr)
> demo("gist")


    demo(gist)
    ---- ~~~~

Type  <Return>   to start : 

> gists_r <- GET("http://gist.github.com/api/v1/json/gists/hadley")

> gists <- content(gists_r)$gists
Loading required package: XML

> str(gists)
 NULL

> gist_r <- GET(str_c("http://gist.github.com/api/v1/json/", gists[[1]]$repo))
Error in xor(is.null(url), is.null(handle)) : 
  could not find function "str_c"

Seems like this could be fixed if the demo loaded stringr first (str_c is there).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions