Hi @vinayprakash808!
Would you mind editing your post to fix the formatting of your R Markdown source, to make your question easier to read and understand? Here’s the trick for getting it to appear correctly: FAQ: How to Format R Markdown Source
It also might help if you can explain more clearly what you are expecting to have happen, and what happens instead.