artemklevtsov / RGA

A Google Analytics API client for R
http://cran.r-project.org/package=RGA
32 stars 13 forks source link

Problem with dev httr? #12

Closed hadley closed 8 years ago

hadley commented 8 years ago

I see:

checking tests ... ERROR
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
  Type 'demo()' for some demos, 'help()' for on-line help, or
  'help.start()' for an HTML browser interface to help.
  Type 'q()' to quit R.

  > library(testthat)
  > library(RGA)
  Please use predefined Credentials only for the testing requests. To obtain your own Credentials see help(authorize).
  > 
  > test_check("RGA")
  Error in UseMethod("status_code") : 
    no applicable method for 'status_code' applied to an object of class "NULL"
  Calls: test_check ... sys.source2 -> eval -> eval -> list_dimsmets -> process_response
  Execution halted

Could you please take a look?

artemklevtsov commented 8 years ago

Seems status_code don't has method for the character class.

httr::http_status("200")
#> Error in 'UseMethod("status_code")':
#>   no applicable method for 'status_code' applied to an object of class "character"

Also you changed category names: success => Success.