Split from: Download data from website into RStudio
I am trying to use the testpackage utility from RStudio server and this is what I get:
==> devtools::test()
No tests: no files in /home/giuseppa/glycopipeshiny/tests/testthat match '^test.*\.[rR]$'
Do I have to create the tests myself?
Whwn I build a package I find the required packages,
devtools::session_info()
Session info ------------------------------------------------------------------
setting value
version R version 3.4.2 (2017-09-28)
system x86_64, linux-gnu
ui RStudio (1.1.383)
language (EN)
collate en_US.UTF-8
tz posixrules
date 2017-11-30
Packages ----------------------------------------------------------------------
package * version date source
base * 3.4.2 2017-10-28 local
commonmark 1.4 2017-09-01 CRAN (R 3.4.2)
compiler 3.4.2 2017-10-28 local
crayon 1.3.4 2017-09-16 CRAN (R 3.4.2)
datasets * 3.4.2 2017-10-28 local
devtools 1.13.4 2017-11-09 CRAN (R 3.4.2)
digest 0.6.12 2017-01-27 CRAN (R 3.4.2)
glycopipeshiny * 0.1.0 2017-11-30 local
graphics * 3.4.2 2017-10-28 local
grDevices * 3.4.2 2017-10-28 local
magrittr 1.5 2014-11-22 CRAN (R 3.4.2)
memoise 1.1.0 2017-04-21 CRAN (R 3.4.2)
methods * 3.4.2 2017-10-28 local
R6 2.2.2 2017-06-17 CRAN (R 3.4.2)
Rcpp 0.12.14 2017-11-23 CRAN (R 3.4.2)
roxygen2 * 6.0.1 2017-02-06 CRAN (R 3.4.2)
rstudioapi 0.7 2017-09-07 CRAN (R 3.4.2)
stats * 3.4.2 2017-10-28 local
stringi 1.1.6 2017-11-17 CRAN (R 3.4.2)
stringr 1.2.0 2017-02-18 CRAN (R 3.4.2)
testthat * 1.0.2 2016-04-23 CRAN (R 3.4.2)
tools 3.4.2 2017-10-28 local
utils * 3.4.2 2017-10-28 local
withr 2.1.0 2017-11-01 CRAN (R 3.4.2)
xml2 1.1.1 2017-01-24 CRAN (R 3.4.2),
but the building results are: ==> devtools::document(roclets=c('rd', 'collate', 'namespace', 'vignette'))
Updating glycopipeshiny documentation
Loading glycopipeshiny
First time using roxygen2. Upgrading automatically...
Warning: The existing 'NAMESPACE' file was not generated by roxygen2, and will not be overwritten.
Documentation completed
==> R CMD INSTALL --no-multiarch --with-keep.source glycopipeshiny
* installing to library ‘/home/giuseppa/R/x86_64-pc-linux-gnu-library/3.4’
* installing *source* package ‘glycopipeshiny’ ...
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
DONE (glycopipeshiny)
Is as if the installed packages: testthat
and roxygen2
are not doing any thing. Do you know what is going on here?
** testing if installed package can be loaded