Commit 90a3aed7 authored by Blodgett, David L.'s avatar Blodgett, David L.

tempfile() only.

parent 5fddab41
......@@ -2,7 +2,8 @@ library(RNetCDF)
library(ncdf4)
library(sf)
library(sp)
nc_file<-'data/test_output.nc'
nc_file<-tempfile()
compareSP <- function(polygonData, returnPolyData) {
polygonData <- sf::as_Spatial(polygonData)
......
......@@ -178,7 +178,6 @@ test_that("Create basic DSG file", {
testnc<-nc_open(testnc)
expect(testnc$dim$time$len == 1460)
testthat::skip_on_cran()
expect("duplicate" %in% names(testnc$var), failure_message = names(testnc$var))
nc_close(testnc)
......
......@@ -31,7 +31,7 @@ Below the example, all the geometry types that `ncdfgeom` handles are shown in d
Tables of point, line, or polygon features with associated timeseries are the target for this functionality. Here, we use some sample data from the `ncdfgeom` package.
```{r libs}
example_file <- "example.nc"
example_file <- tempfile()
file.copy(from = system.file('extdata/example_huc_eta.nc', package = 'ncdfgeom'),
to = example_file,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment