title: Error: invalid assignment for reference class field ‘location’, should be from class “character” or a subclass (was class “logical”)
body: <p>I was trying to use getUser() function in twitteR package as:</p>
  
  <pre><code>library(twitteR)
  
  api_key &lt;- "xxx"
  api_secret &lt;- "xxx"
  access_token &lt;- "xxx"
  access_token_secret &lt;- "xxx"
  
  setup_twitter_oauth(api_key,api_secret,access_token,access_token_secret)
  
  userUSC &lt;- getUser("usc_analytics")
  </code></pre>
  
  <p>The authentication part got through. Yet, I got an error executing the last line:</p>
  
  <p><code>Error: invalid assignment for reference class field ‘location’, should be from class “character” or a subclass (was class “logical”)</code></p>
  
  <p>I didn't fully understand the error message but it seems like R accidentally recognized my characters "usc_analytics" as logical variable. My friend tried on her laptop with the exact same lines and it went through without an error. </p>
  
  <p>Dose anyone have any clue on what is happening here? </p>
  
  <p>Did I mess up some kinds of default settings?</p>
  
  <p>Thank you guys!  </p>
  
  <p>PS. Here's my sessionInfo()</p>
  
  <pre><code>R version 3.3.1 (2016-06-21)
  Platform: x86_64-w64-mingw32/x64 (64-bit)
  Running under: Windows &gt;= 8 x64 (build 9200)
  
  locale:
  [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
  [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
  [5] LC_TIME=English_United States.1252    
  
  attached base packages:
  [1] stats     graphics  grDevices utils     datasets  methods   base     
  
  other attached packages:
  [1] twitteR_1.1.9
  
  loaded via a namespace (and not attached):
  [1] bit_1.1-12    httr_1.2.1    rjson_0.2.15  R6_2.1.2      DBI_0.4-1    
  [6] tools_3.3.1   curl_1.1      bit64_0.9-5   openssl_0.9.4
  </code></pre>
  
  <p>And here's the traceback():</p>
  
  <pre><code>16: stop(gettextf("invalid assignment for reference class field %s, should be from class %s or a subclass (was class %s)", 
      sQuote(fieldName), dQuote(fieldClass), dQuote(class(value))), 
      call. = FALSE)
  15: methods:::.setDummyField(.self, ".-&gt;location", "character", "location", 
      FALSE, value)
  14: (function (value) 
  {
      if (missing(value)) 
          `.-&gt;location`
      else {
          methods:::.setDummyField(.self, ".-&gt;location", "character", 
              "location", FALSE, value)
          value
      }
  })(quote(NA))
  13: .Object$initialize(...)
  12: initialize(value, ...)
  11: initialize(value, ...)
  10: methods::new(def, ...)
  9: statusFactory$new(json)
  8: buildStatus(json[["status"]])
  7: .Object$initialize(...)
  6: initialize(value, ...)
  5: initialize(value, ...)
  4: methods::new(def, ...)
  3: userFactory$new(json)
  2: buildUser(twInterfaceObj$doAPICall(paste("users", "show", sep = "/"), 
     params = params, ...))
  1: getUser("usc_analytics")
  </code></pre>