Error deploying RMarkdown to RStudioConnect

I am facing an issue in deploying the RMarkdown Reports to RStudio Connect.
I am using rsconnect::deployDoc(rmd_doc).
However, there is Error in rsconnect::deployDoc(rmd_doc) :
The document 'test.Rmd' does not exist.
In fact, the test.Rmd is existed in my filesystem.

deploy_rmd <- function(rmd_doc){
rsconnect::deployDoc(rmd_doc)
}

I also tried below by passing the path to the RMarkdown report, but is having error too.

Please advise this issue. What is the correct command to be called to deploy the Rmarkdown report?