Skip to content

Commit

Permalink
add rsconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangyunHuang committed May 21, 2024
1 parent cd0d6e9 commit 0cfcc5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Imports:
randomForest,
raster,
rgl,
rsconnect,
RgoogleMaps,
scatterplot3d,
showtext,
Expand Down
7 changes: 4 additions & 3 deletions _deploy-book.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# On CI connect to server, using API KEY and deploy using appId
rsconnect::addConnectServer("https://bookdown.org", "bookdown.org")
rsconnect::addServer(url = "https://bookdown.org", name = "bookdown.org")
rsconnect::connectApiUser(
account = "xiangyun", server = "bookdown.org",
apiKey = Sys.getenv("CONNECT_API_KEY")
)
rsconnect::deploySite(
appId = Sys.getenv("CONTENT_ID"),
siteName = "msg",
siteTitle = "现代统计图形",
server = "bookdown.org",
render = "none", logLevel = "verbose",
render = "none", account = "xiangyun",
forceUpdate = TRUE
)

0 comments on commit 0cfcc5d

Please sign in to comment.