### Git tricks
# git config --global user.name "federicogiorgi"
# git config --global user.email "federico.giorgi@gmail.com"
### Switching remote URLs from SSH to HTTPS
# # git remote -v
# >origin https://github.com/federicogiorgi/corto (fetch)
# >origin https://github.com/federicogiorgi/corto (push)
# git remote set-url origin https://github.com/federicogiorgi/corto.git
### Switching remote URLS from HTTPS to SSH
# git remote set-url origin git@github.com:federicogiorgi/corto.git
# if (!require(git2r)) {
# install.packages("git2r", repos="http://cran.r-project.org/", quiet=TRUE)
# }
# library(git2r)
# repo<-repository(".")
# push(repo, credentials=cred_user_pass("federicogiorgi",pass))
# Building manuals and namespace using roxygen2
library(devtools)
unlink("NAMESPACE")
document()
# use_vignette("corto_vignette")
cat('importFrom("stats","cor","cor.test","pt","qt","setNames","var","lm","t.test","sd",
"pchisq","ks.test","pnorm","qnorm","quantile","predict","runif")\n',
file="NAMESPACE",append=TRUE)
cat('importFrom("utils", "setTxtProgressBar", "txtProgressBar", "relist")\n',file="NAMESPACE",append=TRUE)
cat('importFrom("gplots", "colorpanel")\n',file="NAMESPACE",append=TRUE)
cat('import("parallel")\n',file="NAMESPACE",append=TRUE)
cat('import("pbapply")\n',file="NAMESPACE",append=TRUE)
cat('importFrom("methods", "is")\n',file="NAMESPACE",append=TRUE)
cat('importFrom("plotrix","draw.circle")\n',file="NAMESPACE",append=TRUE)
cat('importFrom("dplyr", "%>%", "filter", "group_by")\n',file="NAMESPACE",append=TRUE)
cat('importFrom("graphics","abline","arrows","barplot","box","grid","layout",
"legend","lines","mtext","matlines","points", "strheight", "strwidth",
"segments","par","plot","rect","text")\n',file="NAMESPACE",append=TRUE)
usethis::use_build_ignore(c("inst/scripts/howto.R","corto.Rproj",".Rproj.user","R/deleteme.R","README.md"))
build()
check(document=FALSE,args = c('--as-cran'))
# # Remove .Rhistory
# unlink(".Rhistory")
# unlink("R/.Rhistory")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.