Now we can edit travis file and for example add the R versions like this: r: - oldrel - release - devel Also to run for both osx and linux go with os: - linux - osx
Then Build and push. it will check all versions and os listed in yml file and even for warnings throews an error as warnings_are_errors: defualt value is true.
There are other options like rhub package which I try here : https://r-hub.github.io/rhub/articles/rhub.html After installing rhub, validate your email, (if error retart rstudio) then run rhub::check() # now choose one os also check https://r-hub.github.io/rhub/articles/rhub.html
=========
Now navigate to codecov.io and link the github repo to it.
=====
Testing,
install tester and testthat packages.
then run use_testthat. usethis::use_testthat()
it makes testthat.R and a folder and also adds a suggestion for testthat library to the description file.
we have a message the, ● Call use_test()
to initialize a basic test file and open it for editing.
Now we run use_test(name="name_of_the_test_fiel") and it will create a file inside the test/testthat folder and we can edit that and put the code there
We need to make a dataset and the expected output to check the code.
use_dev_package("read.gt3x")
✔ Setting active project to 'C:/Users/Javad/Documents/R/walkabilly/activityCounts'
✔ Adding 'read.gt3x' to Imports field in DESCRIPTION
✔ Adding 'THLfi/read.gt3x' to Remotes field in DESCRIPTION
● Refer to functions with read.gt3x::fun()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.