Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ main.R
build.R
project_files
^\.covrignore$
.idea
Makefile
1 change: 1 addition & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source("renv/activate.R")
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
- r-pkg-cache-{{ arch }}-{{ .Branch }}
- r-pkg-cache-{{ arch }}-
- checkout
- run:
name: Update pip
command: |
apt-get install python3
apt-get install python3-pip
pip install --upgrade pip
- run:
name: Install package dependencies
command: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.Renviron
.Rproj.user
.idea
.env
46 changes: 46 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.PHONY: all style document generate check r_env clean

all: style document build

style:
@echo 'Styling R Directory'
R -e "styler::style_dir('R')"

document:
@echo "Documenting Package"
rm -rf man | echo 'man does not exist'
rm NAMESPACE | echo 'NAMESPACE does not exist'
R -e "devtools::document()"
R -e "devtools::build_manual(path='project_files')"

build:
@echo "Building Package..."
R -e "devtools::build()"
R -e "devtools::install()"

check:
@echo "Checking Packages"
R -e "devtools::check()"
R -e "covr::package_coverage()"
R -e "covr::report()"

r_env:
@echo "Setting Up Environment..."
pip install --upgrade pip
@rm -rf renv | echo 'deleting renv if exists'
@rm -rf .Rprofile | echo 'deleting .Rprofile if exists'
R -e "install.packages('renv')"
R -e "renv::consent(provided=TRUE)"
R -e "renv::init()"
R -e "renv::restore()"
R -e "renv::use_python(type='virtualenv')"
R -e "reticulate::virtualenv_install(packages = 'boto3')"
R -e "reticulate::import('boto3')"

clean:
@echo "Removing unnecessary files"
rm *.zip | echo "No ZIP Files"
rm *.csv | echo "No CSV Files"
rm *.xlsx | echo "No XLSX Files"
rm *.txt | echo "No TXT files"
rm *.pdf | echo "No PDF files"
2 changes: 1 addition & 1 deletion R/client.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ boto3 <- function() {
client <- function(service = NULL, key_access = NULL, key_secret = NULL, region = NULL) {
client <- boto3()$client

client <- client$client(
client(
service,
aws_access_key_id = key_access,
aws_secret_access_key = key_secret,
Expand Down
Binary file added project_files/biggr2_0.1.1.pdf
Binary file not shown.
Loading