Error: object 'nwdemo' not found

Hello everyone, I am a student and I have bioinformatics subject. I am trying to code compareStrings in Rstudio but it keeps error like below:

Error in h(simpleError(msg, call)) : error in evaluating the argument 'pattern' in selecting a method for function 'compareStrings': object 'nwdemo' not found

Please help me how to fix this, Thank you very much

Hi Khanh,

Has you created or loaded the nwdemo data before use it in this function?

Maybe in the page 12 of this documentation you can find the solution.

When you make a question, I recommend using reprex to make it easier to resolve it.