Skip to content

Commit

Permalink
factor: remove native pipe - fix #45
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasverus committed Feb 12, 2024
1 parent ae6269a commit efd7f09
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 18 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
VignetteBuilder: knitr
Depends:
R (>= 4.1.0)
Depends: R (>= 2.10)
Imports:
dplyr,
ggplot2,
Expand Down
6 changes: 2 additions & 4 deletions R/read_cpr_north_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ read_cpr_north_data <- function(path = ".",
data <- data.frame("data_type" = "CPR North", data)
}


data |>
dplyr::mutate(dplyr::across(.data$count_bin_min:.data$count_bin_max,
as.numeric))
dplyr::mutate(data, dplyr::across(.data$count_bin_min:.data$count_bin_max,
as.numeric))
}
3 changes: 1 addition & 2 deletions R/read_cpr_south_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,5 @@ read_cpr_south_data <- function(path = ".",

taxa_columns <- get_species_names(data)

data |>
dplyr::mutate(dplyr::across(dplyr::all_of(taxa_columns), as.numeric))
dplyr::mutate(data, dplyr::across(dplyr::all_of(taxa_columns), as.numeric))
}
3 changes: 1 addition & 2 deletions R/read_plankton_nets_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,5 @@ read_plankton_nets_data <- function(

taxa_columns <- get_species_names(data)

data |>
dplyr::mutate(dplyr::across(dplyr::all_of(taxa_columns), as.numeric))
dplyr::mutate(data, dplyr::across(dplyr::all_of(taxa_columns), as.numeric))
}
3 changes: 1 addition & 2 deletions R/read_pump_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,5 @@ read_pump_data <- function(path = ".",

taxa_columns <- get_species_names(data)

data |>
dplyr::mutate(dplyr::across(dplyr::all_of(taxa_columns), as.numeric))
dplyr::mutate(data, dplyr::across(dplyr::all_of(taxa_columns), as.numeric))
}
3 changes: 1 addition & 2 deletions R/read_sediment_trap_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,5 @@ read_sediment_trap_data <- function(

taxa_columns <- get_species_names(data)

data |>
dplyr::mutate(dplyr::across(dplyr::all_of(taxa_columns), as.numeric))
dplyr::mutate(data, dplyr::across(dplyr::all_of(taxa_columns), as.numeric))
}
8 changes: 4 additions & 4 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"identifier": "forcis",
"description": "Provides an interface to the FORCIS database on global foraminifera distribution. This package allows to download and to handle FORCIS data. It is part of the FRB-CESAB working group FORCIS. <https://www.fondationbiodiversite.fr/en/the-frb-in-action/programs-and-projects/le-cesab/forcis/>.",
"name": "forcis: An R Client to Access the FORCIS Database",
"codeRepository": "https://github.com/FRBCesab/forcis",
"codeRepository": "https://github.com/frbcesab/forcis",
"issueTracker": "https://github.com/FRBCesab/forcis/issues",
"license": "https://spdx.org/licenses/GPL-2.0",
"version": "0.0.0.9000",
Expand Down Expand Up @@ -93,7 +93,7 @@
"@type": "SoftwareApplication",
"identifier": "R",
"name": "R",
"version": ">= 4.1.0"
"version": ">= 2.10"
},
"2": {
"@type": "SoftwareApplication",
Expand Down Expand Up @@ -186,7 +186,7 @@
},
"SystemRequirements": null
},
"fileSize": "1059.228KB",
"fileSize": "1063.112KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down Expand Up @@ -423,7 +423,7 @@
}
],
"relatedLink": "https://frbcesab.github.io/forcis",
"releaseNotes": "https://github.com/FRBCesab/forcis/blob/master/NEWS.md",
"releaseNotes": "https://github.com/frbcesab/forcis/blob/master/NEWS.md",
"readme": "https://github.com/FRBCesab/forcis/blob/master/README.md",
"contIntegration": ["https://github.com/FRBCesab/forcis/actions/workflows/R-CMD-check.yaml", "https://github.com/FRBCesab/forcis/actions/workflows/pkgdown.yaml"]
}

0 comments on commit efd7f09

Please sign in to comment.