R/hello.R

# Hello, world!
#
# This is an example function named 'hello'
# which prints 'Hello, world!'.
#
# You can learn more about package authoring with RStudio at:
#
#   http://r-pkgs.had.co.nz/
#
# Some useful keyboard shortcuts for package authoring:
#
#   Build and Reload Package:  'Ctrl + Shift + B'
#   Check Package:             'Ctrl + Shift + E'
#   Test Package:              'Ctrl + Shift + T'

#hello <- function() {
#  print("Hello, world!")
#}

# this file can also be produced by typing devtools::create()

# link on top leads to a very helpful book

# rOpenSci community has unconferences 1x a year to discuss how to improve R

# create analysis directory (inst/, vignettes, analysis), markdown (Rmd) file in that,
# use bookdown to get cap/cross ref., create a function in R/ and use the function in the Rmd,
# document your function with roxygen

# run a test on the newly created function
joanaseg/mytestpkg documentation built on May 30, 2019, 8:04 a.m.