Comments (3)
Here's a reprex:
Require::Require("CeresBarros/SpaDES.core@test (HEAD)",
dependencies = FALSE, update = FALSE, force = TRUE)
#' # This will save the "caribou" object at the save interval of 1 unit of time
# in the outputPath location
outputPath <- file.path(tempdir(), "test_save")
times <- list(start = 0, end = 6, "month")
parameters <- list(
.globals = list(stackName = "landscape"),
caribouMovement = list(
.saveObjects = c("caribou", "habitatQuality"),
.saveInitialTime = 1, .saveInterval = 1
),
randomLandscapes = list(.plotInitialTime = NA, nx = 20, ny = 20))
modules <- list("randomLandscapes", "caribouMovement")
paths <- list(
modulePath = system.file("sampleModules", package = "SpaDES.core"),
outputPath = outputPath
)
opts <- options("spades.moduleCodeChecks" = FALSE,
"spades.useRequire" = FALSE) # not necessary for example
mySim <- simInitAndSpades(times = times, params = parameters, modules = modules,
paths = paths)
## try with list()
parameters <- list(
.globals = list(stackName = "landscape"),
caribouMovement = list(
.saveObjects = list("caribou", "habitatQuality"),
.saveInitialTime = 1, .saveInterval = 1
),
randomLandscapes = list(.plotInitialTime = NA, nx = 20, ny = 20))
mySim <- simInitAndSpades(times = times, params = parameters, modules = modules,
paths = paths)
## works with one object only
parameters <- list(
.globals = list(stackName = "landscape"),
caribouMovement = list(
.saveObjects = "habitatQuality",
.saveInitialTime = 1, .saveInterval = 1
),
randomLandscapes = list(.plotInitialTime = NA, nx = 20, ny = 20))
mySim <- simInitAndSpades(times = times, params = parameters, modules = modules,
paths = paths)
list.files(paths$outputPath)
from spades.core.
@mbelkebrea, try installing CeresBarros/SpaDES.core@issue241_saveFilesBug
and see if that helps while we wait for others to review the PR
from spades.core.
Pulled in the PR
from spades.core.
Related Issues (20)
- improved module code checks HOT 3
- reqdPkgs issue in new module template
- Release SpaDES.core 2.0.2 HOT 2
- saveSimList() doesn't respect option 'reproducible.tempPath'
- update tests based on changes in reproducible HOT 1
- Require::getPkgVersions() removed upstream HOT 4
- deprecate `.PlotInitialTime` argument in spades()
- Error "object ‘file.move’ is not exported by 'namespace:reproducible'" when installing the package HOT 2
- simulation caching issues in tests HOT 3
- sporadic download failures triggering test failure HOT 4
- don't install packages during tests HOT 3
- Enable passing new `sourceURL`s to metadata
- New feature idea/request: cross-module, project-contained, functions HOT 8
- Use `ggplotify` in Plots to plot non-ggplot graphics HOT 1
- newModule() should create NEWS.md file
- fix additional issues with noSuggests CRAN checks HOT 2
- use consistent per-module paths for output figures HOT 2
- `newModule` is failing when SpaDES.core isn't loaded HOT 2
- `spades` not caching properly. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spades.core.