0

I have Linux Mint 17.1 Cinnamon version and I'm using RStudio to do a sentiment analysis; I need to load the plyr package to do the analysis, but, when I run the commands in R:

library(twitteR)
library(plyr)

as described in this web page, I get the following error:

Attaching package: ‘plyr’

The following object is masked from ‘package:twitteR’:

    id

Since browsing on the internet I did not find any solution to my problem, could someone of you help me?

It will be appreciated whether someone explains me the nature and the meaning of the error, in order to understand why I'm in wrong.

QuantumGorilla
  • 583
  • 2
  • 10
  • 25
  • 1
    It is not an error, it is a warning, telling that the object `id` from package `twitteR` is masked by an object `id` from package `plyr`. –  Apr 17 '15 at 10:32
  • First of all, thanks @Pascal for your reply. So, according to you, if I go on the analysis it will not be any other problem? – QuantumGorilla Apr 17 '15 at 10:35
  • There might be a problem, as `id` is not the same kind of object in `twitteR` and `plyr`. –  Apr 17 '15 at 10:37
  • Do you have some suggestion to avoid that or some way to recognizing the problem eventually, @Pascal ? – QuantumGorilla Apr 17 '15 at 10:46
  • The best and crude way is to run your code and to check if errors occur. –  Apr 17 '15 at 11:01
  • Ok thanks. If you post an answer I will mark that, @Pascal – QuantumGorilla Apr 17 '15 at 11:08

1 Answers1

1

As far as I understand it: Imagine there is a package A with object tmp and you load it. When you load another package B with object of the same name i.e. tmp then you will access tmp from package B and not A.

Prasanna Nandakumar
  • 4,295
  • 34
  • 63