## build for windows
rv <- R.Version()
rv <- paste(rv$major, substr(rv$minor, 1, 1), sep = ".")
rvprompt <- readline(prompt = paste0("Running for R version: ", rv, ". Is that what you wanted y/n: "))
if (grepl("[nN]", rvprompt)) {
stop("Change R-version using Rstudio > Tools > Global Options > Rversion")
}
## build for windows
setwd(rstudioapi::getActiveProject())
f <- devtools::build(binary = TRUE)
devtools::install(upgrade = "never")
fl <- list.files(pattern = "*.zip", path = "../", full.names = TRUE)
for (f in fl) {
print(glue::glue("Copying: {f}"))
file.copy(f, "C:/Users/vnijs/Dropbox/r-packages/", overwrite = TRUE)
unlink(f)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.