Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Habitat Sampler
HabitatSampler
Commits
d646cffd
Commit
d646cffd
authored
Jul 07, 2021
by
Romulo Pereira Goncalves
Browse files
Merge branch 'fix_save_run' into 'master'
We are saving run1 object and not run. See merge request
!20
parents
2def921a
daedb706
Pipeline
#25384
passed with stages
in 11 minutes and 42 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
R-package/R/outer_procedure.r
View file @
d646cffd
...
...
@@ -493,9 +493,7 @@ multi_Class_Sampling <- function(in.raster,
if
(
save_runs
==
TRUE
)
{
run1
<-
maFo_rf
save_run
(
outPath
,
ni
,
run1
)
save_run
(
outPath
=
outPath
,
step
=
ni
,
run1
=
run1
)
remove
(
run1
)
}
...
...
R-package/R/save_files.r
View file @
d646cffd
...
...
@@ -4,11 +4,11 @@
#'
#' @param outPath output path
#' @param step step number
#' @param run the object to be saved
#' @param run
1
the object to be saved
#'
#' @export
save_run
<-
function
(
outPath
,
step
,
run
)
{
save
(
run
,
file
=
paste
(
outPath
,
paste
(
"Run"
,
step
,
sep
=
""
),
sep
=
""
))
save_run
<-
function
(
outPath
,
step
,
run
1
)
{
save
(
run
1
,
file
=
paste
(
outPath
,
paste
(
"Run"
,
step
,
sep
=
""
),
sep
=
""
))
}
#' Save Tif
...
...
R-package/man/save_run.Rd
View file @
d646cffd
...
...
@@ -4,14 +4,14 @@
\alias{save_run}
\title{Save a run}
\usage{
save_run(outPath, step, run)
save_run(outPath, step, run
1
)
}
\arguments{
\item{outPath}{output path}
\item{step}{step number}
\item{run}{the object to be saved}
\item{run
1
}{the object to be saved}
}
\description{
Saves the run object for a step
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment