This started out as a quick fix to a bug in the plot method (the previous code was calling a global object called user, so if there were multiple getFriends calls only the username for user, if any, would be used to display the results).
While I was in the code, though, I thought I would fix some other things most of which are minor things to comply with R CMD check.
The second commit swaps all calls to cat() to message() which is the preferred way of printing to the console because it can be redirected.
This started out as a quick fix to a bug in the
plot
method (the previous code was calling a global object calleduser
, so if there were multiplegetFriends
calls only the username foruser
, if any, would be used to display the results).While I was in the code, though, I thought I would fix some other things most of which are minor things to comply with R CMD check.
The second commit swaps all calls to
cat()
tomessage()
which is the preferred way of printing to the console because it can be redirected.