tests/testthat.R

library(purrr)
library(testthat)
library(tidyverse)
library(lubridate)
library(cropgrowdays)

test_check("cropgrowdays")

## Notes on this file: test/testthat.R

## above generated automatically and seem to work very nicely
## ess-r-devtools-test-package   C-c C-w C-t, C-c C-w t
##   Interface for `devtools::test()'.
## ESS seems to run tests just fine as long as they are in
## tests/testthat/
##
## See  either https://r-pkgs.org/tests.html or
##https://debruine.github.io/tutorials/your-first-r-package-with-unit-tests.html
## Need to put test files in ./tests/testthat directory not ./tests
## Now just need to write the tests correctly ;-) !! EXCEPT seems to have
##  trouble finding 'purrr' even though it is part of tidyverse

Try the cropgrowdays package in your browser

Any scripts or data that you put into this service are public.

cropgrowdays documentation built on Dec. 11, 2021, 9:23 a.m.