Skip to content

Commit 80feacf

Browse files
author
Shawn P. Serbin
authored
Merge pull request #94 from TESTgroup-BNL/quick_updates
Minor updates
2 parents 36c77ae + d1b7375 commit 80feacf

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: spectratrait
22
Title: A simple add-on package to aid in the fitting of leaf-level spectra-trait PLSR models
3-
Version: 1.1.0
3+
Version: 1.1.1
44
Authors@R:
55
c(person(given = "Julien",
66
family = "Lamour",

R/create_data_split.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
##' and validation dataset (val_data)
1212
##'
1313
##' @importFrom magrittr %>%
14-
##' @importFrom dplyr mutate group_by_at slice n vars all_of
14+
##' @importFrom dplyr mutate group_by_at slice n vars all_of row_number
1515
##'
1616
##' @author Julien Lamour, Jeremiah Anderson, Shawn P. Serbin
1717
##' @export
Binary file not shown.

tests/testthat.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
library(testthat)
22
library(spectratrait)
3-
4-
testthat::test_check("spectratrait")
3+
test_check("spectratrait")

tests/testthat/test.create_data_split.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ test_that("Generating a data split using the dplyr approach doesn't throw an err
1717
})
1818

1919
test_that("Generating a data split using the base approach doesn't throw an error or generate duplicates between cal. and val. data", {
20-
plot<- rep(c("plot1", "plot2", "plot3"),each=42)
20+
plot<- rep(c("plot1", "plot2", "plot3"), each=42)
2121
season<- rep(1:6, 21)
2222
disease<- c(rep(0,84), rep(1,42))
2323
d<- seq(1:126)
24-
df <- data.frame(plot,season,disease,d)
24+
df <- data.frame(plot, season, disease, d)
2525
df <- df %>% mutate(id=row_number())
2626

2727
split_data <- spectratrait::create_data_split(dataset=df, approach="base",

0 commit comments

Comments
 (0)