Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_vpts() #590

Merged
merged 159 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from 135 commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
edf3cb8
Rename original read_vpts() to read_stdout()
peterdesmet May 16, 2023
858897b
Start new read_vpts function
peterdesmet May 16, 2023
5739055
Start tests
peterdesmet May 29, 2023
1b1d7ac
Support 2 files formats
peterdesmet May 29, 2023
2da3be5
Document
peterdesmet May 29, 2023
345eee5
Merge branch 'master' into read_vpts
peterdesmet May 29, 2023
377b92e
Use markdown for read_stdout()
peterdesmet May 29, 2023
14a2c3a
Document
peterdesmet May 29, 2023
bddf91f
Merge branch 'master' into read_vpts
iskandari May 30, 2023
4a8e5d5
prepend assert_that
iskandari May 30, 2023
eb87b83
prepended functions
iskandari May 30, 2023
2c9a578
prepended functions
iskandari May 30, 2023
8c5742f
added uniform file extension test
iskandari May 30, 2023
d302d2a
add check that all input files exist
iskandari May 30, 2023
7cea476
added test that files input to function exist
iskandari May 31, 2023
d6b0935
fixed assertthat typo
iskandari May 31, 2023
15e2275
remove assertion that all files exist because URLs are not within the…
iskandari May 31, 2023
438616a
added remote hdf5 to read_vpts test
iskandari May 31, 2023
06927df
switched out httr for curl
iskandari May 31, 2023
600ecbc
define tempfile
iskandari May 31, 2023
ebdb14e
fix typo
iskandari May 31, 2023
0d024fa
remove multiple temp files
iskandari May 31, 2023
58fb736
fix typo
iskandari May 31, 2023
abb0c72
check results$datetime for number of vp objects
iskandari May 31, 2023
a1f37f3
remove print statements
iskandari May 31, 2023
9578b04
added keywords internal to read_stdout
iskandari May 31, 2023
f08472e
modified namespace and added read_stdout to man files
iskandari May 31, 2023
25229da
added deprecation rerouting for read_vpts() to read_stdout() with .De…
iskandari Jun 2, 2023
8e03715
added deprecation rerouting for read_vpts() to read_stdout() with .De…
iskandari Jun 2, 2023
a37b7cd
test example vpts file with rerouting to stdout
iskandari Jun 2, 2023
1d73a75
test example vpts file with rerouting to stdout
iskandari Jun 2, 2023
081cc95
test example vpts file with rerouting to stdout
iskandari Jun 2, 2023
4cd5265
add deprecated parameters to documentation for now
iskandari Jun 2, 2023
fe01eac
rebuilt docs for read_vpts
iskandari Jun 2, 2023
eccf47b
add test for multiple radars in vp hdf5 files
iskandari Jun 2, 2023
f2273fe
add test for multiple radars in vp hdf5 files
iskandari Jun 2, 2023
78f7f0f
all tests passing with one exception
iskandari Jun 3, 2023
b070429
all tests passing with one exception
iskandari Jun 3, 2023
e48a129
all tests pass with one exception
iskandari Jun 3, 2023
0e82d3d
added helper script and modified test-read_vpts accordingly
iskandari Jun 3, 2023
85a5723
avoid checking system files and use relative paths for temp directories
iskandari Jun 3, 2023
643f0d5
added importFrom statement in utils.R
iskandari Jun 5, 2023
95fc0fc
updated documentation
iskandari Jun 5, 2023
f51e100
bump version number: development
PietrH Jun 6, 2023
75080c4
parse both NA and NaN (fix #40)
adokter Jun 6, 2023
afb723d
Verbosely declare utils::read.csv()
peterdesmet Jun 6, 2023
f83f0fb
Use styler
peterdesmet Jun 6, 2023
f8f371d
modified read_vpts() to check for .txt as opposed to old input parame…
iskandari Jun 7, 2023
aa3c60a
expect warning with txt and correct parameters to stdout, otherise ex…
iskandari Jun 7, 2023
8d4a136
pass additional arguments ... to stdout()
iskandari Jun 7, 2023
cb3b23c
suppress warnings so that test can pass
iskandari Jun 7, 2023
2dbb80e
because both warning and error occur, use expect condition
iskandari Jun 7, 2023
2a591bd
reran docs for read_vpts
iskandari Jun 7, 2023
4e552da
convert radar to char
iskandari Jun 7, 2023
c0d7a72
Rename parameter data_frame to df
peterdesmet Jun 8, 2023
3358d97
Merge branch 'master' into read_vpts
peterdesmet Jun 8, 2023
2a064b4
Create test-read_stdout.R
peterdesmet Jun 8, 2023
9427467
move radar assertation to top, use assertthat::assert_that for error …
PietrH Jun 9, 2023
4abde18
change error expectations, add radar argument to tests
PietrH Jun 9, 2023
3e82ffa
add wavelength assertions
PietrH Jun 9, 2023
294f709
suppress warning from test output
PietrH Jun 9, 2023
378e70f
fail on delimiter early
PietrH Jun 9, 2023
4f085d0
avoid warning from test output
PietrH Jun 9, 2023
7517aba
fix spelling error
PietrH Jun 9, 2023
32a1679
Merge branch 'master' into test_read_stdout
PietrH Jun 9, 2023
2ca8e75
Merge pull request #601 from adokter/test_read_stdout
peterdesmet Jun 9, 2023
468dcb8
added suntools to remotes and depends
iskandari Jun 9, 2023
9e6074b
removed maptools from depends
iskandari Jun 9, 2023
49c0997
rebuilt codemeta and removed maptools from all docs
iskandari Jun 9, 2023
10eb2f2
increment version
iskandari Jun 9, 2023
3b3fb3e
increment version
iskandari Jun 9, 2023
fa29f36
separate remoted with comma
iskandari Jun 9, 2023
616749e
Merge branch 'read_vpts' of github.com:adokter/bioRad into read_vpts
iskandari Jun 9, 2023
fcc3a82
Resolved merge conflict in DESCRIPTION
iskandari Jun 9, 2023
cc24638
added timesteps in read_vpts_csv
iskandari Jun 9, 2023
7acc9ee
added guess_file_type to helper script
iskandari Jun 9, 2023
1de00fa
changed baltrad urls
iskandari Jun 9, 2023
36e2b51
changed baltrad urls
iskandari Jun 9, 2023
e8d464c
added check for file type if extension not found
iskandari Jun 9, 2023
ee9c127
assume comma on every line or csv assumption
iskandari Jun 9, 2023
099d43b
added remaining attributes to data.frmae
iskandari Jun 9, 2023
05096c7
move test script variables out of helper function script
iskandari Jun 9, 2023
30d6248
move test script variables out of helper function script
iskandari Jun 9, 2023
cd3226a
added guess_file_type to utils
iskandari Jun 9, 2023
6248de5
added guess_file_type rd file
iskandari Jun 9, 2023
d58f895
rename vptsfile to stdout_file
adokter Jun 13, 2023
6d2311d
add example prototypes for read_vpts
adokter Jun 13, 2023
c1ca84b
removed deprecation warning and pass only named arguments to read_stdout
Jun 14, 2023
652fff0
removed internal functions from docs; added tibble_to_mat to utils
iskandari Jun 16, 2023
39e2974
added df_to_mat_list helper function
iskandari Jun 16, 2023
ced1dda
style code
iskandari Jun 16, 2023
90ac8da
style utils
iskandari Jun 16, 2023
c54875a
Convert ISO 8601 to posixct in mutation
iskandari Jun 16, 2023
f6a33c8
fixed tests to compare vpts output of h5 and csv files from 3 days
iskandari Jun 21, 2023
46ee879
correct comment for expect_equal
iskandari Jun 21, 2023
de24cd3
avoid notes for non-standard evaluation
iskandari Jun 21, 2023
1458fee
formatted test-read_vpts.R
iskandari Jun 22, 2023
8154e67
added example vpts.csv file in extdata
iskandari Jun 22, 2023
7f598e8
added stdout format to read_vpts documentation
iskandari Jun 22, 2023
bbc22f5
rebuild documentation
iskandari Jun 22, 2023
5e3b1e0
fixed startup message
iskandari Jun 22, 2023
0fc8c3c
Add .vscode to .gitignore
iskandari Jun 23, 2023
0d17b74
modify missing values in frictionless package schema
iskandari Jun 23, 2023
52feda0
Merge branch 'read_vpts' of github.com:adokter/bioRad into read_vpts
iskandari Jun 23, 2023
95f0db7
reverted gitignore
iskandari Jun 23, 2023
c186b06
fixed missing link in read_vpts roxygen docs
iskandari Jun 26, 2023
31ae4bf
updated guess file type documentation
iskandari Jun 26, 2023
e72b6ca
explicitly specify .csv extension in calculate_vp()
iskandari Jun 26, 2023
7d10478
write csv with vol2birdR and use read_vpts in calculate_vp when csv e…
iskandari Jun 26, 2023
b2a4424
added test that checks calcluate_vp() output matches input vpfile ext…
iskandari Jun 26, 2023
bb95b4c
regenerated man file for calculate_vp
iskandari Jun 26, 2023
941a477
read in frictionless schema with jsonlite and modify
iskandari Jun 26, 2023
d46c874
check for mismatch between explicit file extension and guessed_file_e…
iskandari Jun 26, 2023
588cfec
fixed examples in documentation for read_vpts
iskandari Jun 26, 2023
8992824
fixed example line and moved sf to suggests
iskandari Jun 26, 2023
125a89d
regenerated documnetation for read_vpts
iskandari Jun 26, 2023
f2b5cf9
remove evolution status change and messaging in pakcage startup as it…
iskandari Jun 27, 2023
25255aa
remove require aws message in tests
iskandari Jun 28, 2023
e97ef07
convert vpts to vp in calculate vp
iskandari Jun 28, 2023
d7efa62
calculate_vp test should always expect output of vp class
iskandari Jun 28, 2023
62eaac0
replace temp directory with tempdir()
iskandari Jun 28, 2023
1945a79
reduced size of example_vpts.csv
iskandari Jun 28, 2023
7d458f8
remove unlink tempfile
iskandari Jun 28, 2023
06b00ed
abstracted and exported as.vpts from read_vpts_csv
Jul 5, 2023
bc0ecb8
generated docs for as.vpts and added vpts to extdata
iskandari Jul 5, 2023
8805223
added tests for as vpts; fixed small errors and regenerated docs
iskandari Jul 6, 2023
2519a85
added test for as.vpts
iskandari Jul 6, 2023
92fb7c7
remove introduced stray spaces
adokter Jul 6, 2023
1c9492d
remove github suntools remote
adokter Jul 6, 2023
5eaf21f
added extra documentation
iskandari Jul 6, 2023
2b7e171
added extra documentation
iskandari Jul 6, 2023
0886cd4
Merge branch 'read_vpts' of github.com:adokter/bioRad into read_vpts
iskandari Jul 6, 2023
f7bc760
moved as.vpts() to its own R script
iskandari Jul 6, 2023
20c9bf8
moved as.vpts() to its own R script
iskandari Jul 6, 2023
031a7f9
update news, add comments to as.vpts example
adokter Jul 7, 2023
d45f23a
separate dplyr mutation of source file only if it exists
iskandari Jul 7, 2023
c55e497
add test for multiple h5 radar warning
iskandari Jul 7, 2023
92a8556
fix messaging for .txt stdout files
iskandari Jul 7, 2023
33001b0
fix #609
adokter Jul 7, 2023
c71e797
Merge branch 'read_vpts' of https://github.com/adokter/bioRad into re…
adokter Jul 7, 2023
743c70d
dedupe datetime height in example_vpts.csv
iskandari Jul 7, 2023
708e2e4
added test for vpts -> df -> vpts conversion
iskandari Jul 7, 2023
1ed419b
compare h5 to csv inputs for 1 day instead of 3
iskandari Jul 7, 2023
c7adb94
add warnings, mask rcs and sd_vvp_threshold
adokter Jul 7, 2023
398e734
expose and document data_frame argument
adokter Jul 7, 2023
1a0c6c2
rebuild documentation
adokter Jul 7, 2023
24b6c47
fix test
adokter Jul 7, 2023
df90570
regenerated codemet.json
iskandari Jul 7, 2023
9db2f53
Merge branch 'read_vpts' of https://github.com/adokter/bioRad into re…
adokter Jul 7, 2023
f336059
fix test, restore rcs and sd_vvp_threshold as data columns
adokter Jul 7, 2023
2b29cc9
add rcs and sd_vvp_threshold as columns in as.data.frame.vpts
adokter Jul 7, 2023
565a786
Merge branch 'read_vpts' of https://github.com/adokter/bioRad into re…
adokter Jul 7, 2023
a9c42a7
repalce expect equivalent with expect equal
iskandari Jul 7, 2023
80ba670
fix test for added rcs and sd_vvp_threshold parameters
adokter Jul 7, 2023
21af5ac
update authorship
adokter Jul 7, 2023
b0dc2e7
Merge branch 'read_vpts' of github.com:adokter/bioRad into read_vpts
iskandari Jul 7, 2023
57746c6
Revert "repalce expect equivalent with expect equal"
iskandari Jul 7, 2023
9857561
Revert "Merge branch 'read_vpts' of https://github.com/adokter/bioRad…
iskandari Jul 7, 2023
12d81ad
updated docs and codemeta json
iskandari Jul 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ pkgdown/*
.DS_Store
/doc/
/Meta/

13 changes: 7 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: bioRad
Title: Biological Analysis and Visualization of Weather Radar Data
Version: 0.7.0.9602
Version: 0.7.0.9603
Description: Extract, visualize and summarize aerial movements of birds and
insects from weather radar data. See <doi:10.1111/ecog.04028>
for a software paper describing package and methodologies.
Expand Down Expand Up @@ -30,27 +30,28 @@ Imports:
assertthat,
curl,
fields,
frictionless,
ggplot2,
glue,
graphics,
lubridate,
lutz,
maptools,
suntools,
methods,
raster,
readr,
dplyr (>= 1.1.0),
rhdf5,
sp,
iskandari marked this conversation as resolved.
Show resolved Hide resolved
sf,
stats,
tidyr,
utils,
viridisLite,
viridis,
rlang
rlang,
jsonlite
Remotes:
bioc::rhdf5
bioc::rhdf5,
Suggests:
vol2birdR,
aws.s3,
Expand All @@ -60,7 +61,7 @@ Suggests:
rmarkdown,
testthat (>= 3.0.0),
vdiffr,
rgdal
sf
LazyData: true
Encoding: UTF-8
VignetteBuilder: knitr
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ S3method(summary,vpts)
export("rcs<-")
export("sd_vvp_threshold<-")
export(apply_mistnet)
export(as.vpts)
export(attribute_table)
export(beam_distance)
export(beam_height)
Expand Down Expand Up @@ -133,6 +134,7 @@ export(project_as_ppi)
export(rcs)
export(read_cajun)
export(read_pvolfile)
export(read_stdout)
export(read_vpfiles)
export(read_vpts)
export(regularize_vpts)
Expand Down
24 changes: 13 additions & 11 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<!--

* `bind_into_vpts()` now works for vp's and vpts's with different heights (#343).

-->

# bioRad 0.7.0.XXXX
# bioRad 0.7.0

bioRad 0.7 includes a major backend overhaul that deprecates the use of Docker. All Docker-dependent functionality is now included in the new dependency package [vol2birdR](https://cran.r-project.org/package=vol2birdR) package, which needs to be installed as part of bioRad. All bioRad functions remain the same, but several functions will run considerable faster.

Expand All @@ -16,15 +10,21 @@ bioRad 0.7 includes a major backend overhaul that deprecates the use of Docker.

* Faster implementations of functions previously dependent on Docker, such as `calculate_vp()`, `apply_mistnet()` and `read_pvolfile()`.

* Faster parallel mistnet runs (https://github.com/adokter/vol2birdR/issues/16).
* Support for reading [VPTS CSV](https://aloftdata.eu/vpts-csv/) format through updated function `read_vpts()`. VPTS CSV table schema included to allow offline parsing of VPTS CSV files as a [frictionless](https://CRAN.R-project.org/package=frictionless) data package (#551, #590)

* Updated function `read_vpts()` supports reading `vp`/`vpts` data in ODIM HDF, [VPTS CSV](https://aloftdata.eu/vpts-csv/) format (#551, #590)

* New function `list_vpts_aloft()` produces a list of [aloft](https://aloftdata.eu/browse/) archive URLs for time series of vertical profiles (`vpts`). This list of URLs can then be used to bulk download data using any number of external tools (#553).

* Updated function `read_vpts()` supports reading `vp`/`vpts` data in hdf5 and [VPTS CSV](https://aloftdata.eu/vpts-csv/) format.
* New function `read_stdout()` replaces previous functionality of `read_vpts()` to read vol2bird stdout format. It also has a new `sep` argument (#536) to support both fixed-delimited and comma-separated stdout data.

* New function `read_stdout()` replaces previous functionality of `read_vpts()` to read vol2bird stdout format. It also has a new `sep` argument (#536).
* New function `as.vpts` converts a data.frame originating from a VPTS CSV file into a vpts object (#555). Inverse operation of as.data.frame.vpts

* `read_pvolfiles()` now allows ODIM_H5 files with missing `source` attribute. The functionality is similar to `read_vpfiles()`, i.e. using the NOD identifier in the source attribute, if missing try RAD, if also missing try WMO, if nothing found use `unknown` (2f6935c).
* `read_pvolfiles()` now allows ODIM H5 files with missing `source` attribute. The functionality is similar to `read_vpfiles()`, i.e. extracting the NOD, RAD or WMO identifier, otherwise using `unknown` (2f6935c).

* `bind_into_vpts()` now works for vp and vpts objects with different heights (#343)

* Faster parallel mistnet runs (https://github.com/adokter/vol2birdR/issues/16).

## Bugfixes

Expand All @@ -38,6 +38,8 @@ bioRad 0.7 includes a major backend overhaul that deprecates the use of Docker.

* Function `vol2bird_version()` has been migrated to package vol2birdR and can be accessed by `vol2birdR::vol2bird_version()`.

* Dependency `maptools` has been replaced with [suntools](https://github.com/adokter/suntools), `rgdal` has been removed in accordance with the evoltion of `sp` and the [imminent archiving](https://r-spatial.org/r/2023/05/15/evolution4.html) of `rgdal`

# bioRad 0.6.1

Rebuilds the documentation using roxygen2 for compability with HTML5 (a CRAN requirement).
Expand Down
96 changes: 96 additions & 0 deletions R/as.vpts.R
iskandari marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@

#' Convert a dataframe into a vpts object
#'
#' @param data a dataframe created from a VPTS CSV file
#' @returns a bioRad vpts object
#' @examples
#' # locate example file in VPTS CSV format:
#' df <- read.csv(system.file("extdata", "example_vpts.csv", package = "bioRad"))
#' # convert the data.frame to a vpts object:
#' as.vpts(df)
#' @export
as.vpts <- function(data) {
height <- datetime <- source_file <- radar <- NULL

# Throw error if nrows per height are not identical

assertthat::assert_that(
isFactor(dim(data)[1], length(unique(data$height))) > 0,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we use lowercase throughout and separating words by _, so this should be rename is_factor. may be confusing though because factor is a specific data type in R, so would use a different word

msg = "Number of rows per height variable must be identical"
)

radar <- unique(data[["radar"]])

# Check radar is unique
assertthat::assert_that(
length(radar) == 1,
msg = "`files` must contain data of a single radar."
)

if (!exists("cached_schema")) {
# Load the schema from the data directory and cache it
cached_schema <- jsonlite::fromJSON(system.file("extdata", "vpts-csv-table-schema.json", package = "bioRad"),
simplifyDataFrame = FALSE, simplifyVector = TRUE
)
}

data <- dplyr::mutate(
data,
radar = as.factor(radar),
source_file = as.factor(source_file),
datetime = as.POSIXct(datetime, format = "%Y-%m-%dT%H:%M:%SZ", tz = "UTC")
)

# Check whether time series is regular
heights <- as.integer(unique(data[["height"]]))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why convert to integer? we may have situations where the height is a float


# Subset timestamps by first sampled height
datetime <- data[data[["height"]] == heights[1], ][["datetime"]]
datetime <- as.POSIXct(datetime, format = "%Y-%m-%dT%H:%M:%SZ", tz = "UTC")


# Determine regularity
difftimes <- difftime(datetime[-1], datetime[-length(datetime)], units = "secs")
if (length(unique(difftimes)) == 1) {
regular <- TRUE
} else {
regular <- FALSE
}

# Get attributes
radar_height <- data[["radar_height"]][1]
interval <- unique(heights[-1] - heights[-length(heights)])
wavelength <- data[["radar_wavelength"]][1]
lon <- data[["radar_longitude"]][1]
lat <- data[["radar_latitude"]][1]
rcs <- data[["rcs"]][1]
sd_vvp_threshold <- data[["sd_vvp_threshold"]][1]

# Convert dataframe
maskvars <- c("radar", "radar_latitude", "radar_longitude", "radar_height", "radar_wavelength", "source_file", "datetime", "height")

data <- df_to_mat_list(data, maskvars, cached_schema)

# Create vpts object
output <- list(
radar = as.character(radar),
datetime = datetime,
height = heights,
daterange = c(min(datetime), max(datetime)),
timesteps = difftimes,
data = data,
attributes = list(
where = data.frame(
interval = as.integer(interval),
levels = length(heights),
height = as.integer(radar_height),
lon = lon,
lat = lat
),
how = data.frame(wavelength = wavelength, rcs_bird = rcs, sd_vvp_thresh = sd_vvp_threshold)
),
regular = regular
)
class(output) <- "vpts"
return(output)
}
10 changes: 7 additions & 3 deletions R/calculate_vp.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#' library](https://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/) or 3) Vaisala
#' IRIS (IRIS RAW) format.
#' @param vpfile Character. File name. When provided, writes a vertical profile
#' file (`vpfile`) in the ODIM HDF5 format to disk.
#' file (`vpfile`) either in the VPTS CSV or ODIM HDF5 format to disk.
#' @param pvolfile_out Character. File name. When provided, writes a polar
#' volume (`pvol`) file in the ODIM HDF5 format to disk. Useful for converting
#' RSL formats to ODIM.
Expand Down Expand Up @@ -336,7 +336,11 @@ calculate_vp <- function(file, vpfile = "", pvolfile_out = "",
filedir <- dirname(normalizePath(file[1], winslash = "/"))
assertthat::assert_that(assertthat::is.writeable(filedir))

profile.tmp <- tempfile()
if (vpfile != '' && tools::file_ext(vpfile) == "csv"){
profile.tmp <- tempfile(fileext = ".csv")
} else {
profile.tmp <- tempfile(fileext = ".h5")
}

config <- vol2birdR::vol2bird_config()
if (!autoconf) {
Expand Down Expand Up @@ -388,7 +392,7 @@ calculate_vp <- function(file, vpfile = "", pvolfile_out = "",
)

# read output into a vp object
output <- read_vpfiles(profile.tmp)
output <- vpts_to_vp(read_vpts(profile.tmp))

# read output and clean up
if (vpfile != "") {
Expand Down
2 changes: 1 addition & 1 deletion R/download_pvolfiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#'
#' @examples
#' \dontrun{
#' create temporary directory
#' # create temporary directory
#' temp_dir <- paste0(tempdir(),"/bioRad_tmp_files")
#' dir.create(temp_dir)
#' download_pvolfiles(
Expand Down
5 changes: 0 additions & 5 deletions R/hooks.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,4 @@
if (rlang::is_installed("vol2birdR")) {
packageStartupMessage(paste("using vol2birdR version ", utils::packageVersion("vol2birdR"), ifelse(vol2birdR::mistnet_exists(), " (MistNet installed)", " (MistNet not installed)"), sep = ""))
}
if (requireNamespace("sp", quietly = TRUE)) {
sp::set_evolution_status(2L)
packageStartupMessage("Assigning sp_evolution_status to 2. See sp::get_evolution_status()")
packageStartupMessage("This is required until the 'sp' package deprecates 'rgdal'")
}
}
Loading