RunVarroaPopLocal: Run the VarroaPop honey bee colony model on a local computer

Description Usage Arguments Value Author(s)

View source: R/run_varroapop.R

Description

Function to run the VarroaPop honey bee colony model for a given set of parameters, with options to set and save the input, output, and log files. Path to the weather file must be set in the .vrp file, or as the input parameter 'WeatherFileName'

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
RunVarroaPopLocal(parameters, exe_file = system.file("varroapop_files", "exe",
  "VarroaPop.exe", package = "VarroaPopWrapper"),
  vrp_file = system.file("varroapop_files", "exe", "default.vrp", package =
  "VarroaPopWrapper"), in_path = paste(system.file("varroapop_files", package
  = "VarroaPopWrapper"), "/", sep = ""), in_filename = "vp_input.txt",
  log_path = paste(system.file("varroapop_files", "logs", package =
  "VarroaPopWrapper"), "/", sep = ""),
  out_path = paste(system.file("varroapop_files", "output", package =
  "VarroaPopWrapper"), "/", sep = ""), out_filename = "vp_results.txt",
  weather_file = system.file("varroapop_files", "weather",
  "18815_grid_39.875_lat.wea", package = "VarroaPopWrapper"),
  save_files = FALSE, logs = FALSE, verbose = FALSE)

Arguments

parameters

Named vector of VarroaPop inputs to be written to .txt file.

exe_file

= Full path to the VarroaPop exe file, e.g. 'C:/VarroaPop/exe/VarroaPop.exe' (optional)

vrp_file

= Full path to the VarroaPop session file, e.g. 'C:/VarroaPop/exe/default.vrp' (optional)

in_path

Full path of directory to write inputs file to, e.g. 'C:/VarroaPop/inputs/' (optional)

in_filename

Name of input files which will be created e.g. 'myinput.txt' (optional)

log_path

Full path of directory to write log files to e.g. 'C:/VarroaPop/logs/'(optional)

out_path

Full path of directory to write outputs file to, e.g. 'C:/VarroaPop/outputs/' (optional)

out_filename

Name of input files which will be created e.g. 'myoutput.txt' (optional)

save_files

T/F should input, output, and log files be kept or deleted afterward?

logs

T/F create VarroaPop program log files?

verbose

T/F print extra details?

Value

A dataframe where each column is a VarroaPop output and rows are daily values (with the first row giving initial values at time 0.)

Author(s)

Jeffrey M Minucci, jminucci2@gmail.com


quanted/VarroaPopWrapper documentation built on May 18, 2019, 11:28 p.m.