diff --git a/.github/workflows/R-CMD-check-all.yaml b/.github/workflows/R-CMD-check-all.yaml index 5fca463..b0b6ab5 100644 --- a/.github/workflows/R-CMD-check-all.yaml +++ b/.github/workflows/R-CMD-check-all.yaml @@ -22,7 +22,9 @@ jobs: with: filters: | testpkg01: 'testpkg01/**' - testpkg02: 'testpkg02/**' + testpkg02: + - 'testpkg01/R' + - 'testpkg02/**' # JOB to build and test each of modified packages checkPackages: diff --git a/testpkg01/DESCRIPTION b/testpkg01/DESCRIPTION index 97b997c..f010b50 100644 --- a/testpkg01/DESCRIPTION +++ b/testpkg01/DESCRIPTION @@ -1,10 +1,13 @@ Package: testpkg01 -Title: What the Package Does (One Line, Title Case) -Version: 0.0.0.9007 +Title: CO2 head +Version: 0.0.9010 Authors@R: - person("First", "Last", , "first.last@example.com", role = c("aut", "cre"), - comment = c(ORCID = "YOUR-ORCID-ID")) -Description: What the package does (one paragraph). + person(given = "Kevin", + family = "Cazelles", + role = c("aut", "cre"), + email = "kevin.cazelles@insileco.io", + comment = c(ORCID = "0000-0001-6619-9874")) +Description: Return the head of the CO2 dataset. License: MIT + file LICENSE Encoding: UTF-8 Roxygen: list(markdown = TRUE) diff --git a/testpkg02/DESCRIPTION b/testpkg02/DESCRIPTION index 5e58e37..c546833 100644 --- a/testpkg02/DESCRIPTION +++ b/testpkg02/DESCRIPTION @@ -1,11 +1,18 @@ Package: testpkg02 -Title: What the Package Does (One Line, Title Case) -Version: 0.0.0.9007 +Title: Call to testpkg01 +Version: 0.0.9010 Authors@R: - person("First", "Last", , "first.last@example.com", role = c("aut", "cre"), - comment = c(ORCID = "YOUR-ORCID-ID")) -Description: What the package does (one paragraph). + person(given = "Kevin", + family = "Cazelles", + role = c("aut", "cre"), + email = "kevin.cazelles@insileco.io", + comment = c(ORCID = "0000-0001-6619-9874")) +Description: Call the one function of testpkg01. License: MIT + file LICENSE Encoding: UTF-8 Roxygen: list(markdown = TRUE) RoxygenNote: 7.2.3 +Imports: + testpkg01 +Remotes: + inSileco/monoRepoR/testpkg01 diff --git a/testpkg02/NAMESPACE b/testpkg02/NAMESPACE index 4acfe29..ca74319 100644 --- a/testpkg02/NAMESPACE +++ b/testpkg02/NAMESPACE @@ -1,3 +1,3 @@ # Generated by roxygen2: do not edit by hand -export(seqRow) +export(call_hello_co2) diff --git a/testpkg02/R/call_hello_co2.R b/testpkg02/R/call_hello_co2.R new file mode 100644 index 0000000..0230fdb --- /dev/null +++ b/testpkg02/R/call_hello_co2.R @@ -0,0 +1,7 @@ +#' Call hello_co2() from `testpkg01` +#' @export +#' @examples +#' call_hello_co2() +call_hello_co2 <- function() { + testpkg01::hello_co2() +} \ No newline at end of file diff --git a/testpkg02/R/seqRow.R b/testpkg02/R/seqRow.R deleted file mode 100644 index 4723f9c..0000000 --- a/testpkg02/R/seqRow.R +++ /dev/null @@ -1,6 +0,0 @@ -#' Sequence based on the number of row of a dataframe -#' @param x a dataframe. -#' @export -seqRow <- function(x) { - seq_len(NROW(x)) -} \ No newline at end of file diff --git a/testpkg02/man/call_hello_co2.Rd b/testpkg02/man/call_hello_co2.Rd new file mode 100644 index 0000000..40834b3 --- /dev/null +++ b/testpkg02/man/call_hello_co2.Rd @@ -0,0 +1,14 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/call_hello_co2.R +\name{call_hello_co2} +\alias{call_hello_co2} +\title{Call hello_co2() from \code{testpkg01}} +\usage{ +call_hello_co2() +} +\description{ +Call hello_co2() from \code{testpkg01} +} +\examples{ +call_hello_co2() +} diff --git a/testpkg02/man/seqRow.Rd b/testpkg02/man/seqRow.Rd deleted file mode 100644 index 22f2727..0000000 --- a/testpkg02/man/seqRow.Rd +++ /dev/null @@ -1,14 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/seqRow.R -\name{seqRow} -\alias{seqRow} -\title{Sequence based on the number of row of a dataframe} -\usage{ -seqRow(x) -} -\arguments{ -\item{x}{a dataframe.} -} -\description{ -Sequence based on the number of row of a dataframe -}