在 R 中使用 getURL 从本地加载 HTML 页面

Load an HTML page from local with getURL in R

我正在尝试使用 getURL 从本地目录加载 HTML 页面:

library(RCurl)
my_page<-getURL("my_page.html")

但我明白了

Error in function (type, msg, asError = TRUE)  : 
  Could not resolve host: my_page.html

如何描述正确的路径?

尝试

my_page<-getURL(paste0("file:///", getwd(), "/my_page.html"))