Here's why you're having trouble. The manual linked by venu is not a good write up at all. The author failed to mention that getSampleFiles is actually a command that comes with the ChIPSeeker package to load up sample files.
What you need to do is load up bed files of your called peaks (.narrowPeak output from MACS2 is a special type of BED), into R-compatible GRanges object.
Here's a thread where one answer recommends the use of the package rtracklayer for this purpose. Also read this blogpost for a more insight on how special types of BED files can be massaged to be rtracklayer-compatible.
Hope this helps.
https://www.bioconductor.org/packages/release/bioc/vignettes/ChIPseeker/inst/doc/ChIPseeker.html
Thank you, but I already found that page. It's not clear to me how the five files are found and loaded in R.
From the docs, if you look at the code
filesis a named list object with paths ti bed file. So you need to create such an object with your files.How do I create such path to my bed files? I just replaced the example files with my bed file in GEO_sample_data folder.
May be, by learning basics of R?
That is such a condescending and unnecessary response, if you're not going to help at all.
Maybe consider not providing a reply if sarcasm is the best you can manage.
It may not be very helpful, but it's not sarcasm.