Skip to content

Instantly share code, notes, and snippets.

View ernestguevarra's full-sized avatar

Ernest Guevarra ernestguevarra

View GitHub Profile
download <- function(url, quiet = TRUE) {
"!DEBUG Downloading `url`"
path <- tempfile()
status <- utils::download.file(
url,
path,
method = download_method(),
quiet = quiet,
@ernestguevarra
ernestguevarra / devtools_check.R
Created November 26, 2020 09:46
devtools command for package check with installation of all requisite packages
devtools::check_rhub(env_vars=c(R_COMPILE_AND_INSTALL_PACKAGES = "always"))
@ernestguevarra
ernestguevarra / package_review_checklist.md
Created November 26, 2020 22:49
R Package Review Checklist

Package Review

Please check off boxes as applicable, and elaborate in comments below. Your review is not limited to these topics, as described in the reviewer guide

  • Briefly describe any working relationship you have (had) with the package authors.
  • As the reviewer I confirm that there are no conflicts of interest for me to review this work (If you are unsure whether you are in conflict, please speak to your editor before starting your review).

Documentation

[![cran checks](https://cranchecks.info/badges/worst/sp)](https://cran.r-project.org/web/checks/check_results_sp.html)
sudo apt update
sudo apt ugrade
sudo apt-get install -y g++ gfortran libreadline6-dev libx11-dev libxt-dev libpng-dev libjpeg-dev libcairo2-dev xvfb libbz2-dev libzstd-dev liblzma-dev libcurl4-openssl-dev texinfo texlive texlive-fonts-extra screen wget libpcre2-dev zlib1g-dev libbz2-dev liblzma-dev libpcre2-dev libcurl4-openssl-dev openjdk-11-jdk make
cd /usr/local/src
sudo wget https://cran.rstudio.com/src/base/R-4/R-4.0.3.tar.gz
sudo su
tar zxvf R-4.0.3.tar.gz
cd R-4.0.3
./configure --enable-R-shlib
make
# Return of the BMI exercise - 28 November 2023 --------------------------------
## Load libraries ----
library(dplyr) ## for data manipulation
library(openxlsx) ## for reading XLSX files
library(zscorer) ## for calculating z-scores
## Load project-specific functions ----
source(list.files("R", full.names = TRUE))