You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# beginCluster(20) # if you have multiple clusters available, use them here to save time^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defineParameter("persistprob", "numeric", 0.00, 0, 1, "probability of fire persisting in a pixel"),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defineParameter("spreadprob", "numeric", 0.225, 0.05, 0.5, "probability of fire spreading into a pixel"),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defineParameter(".saveInitialTime", "numeric", NA_real_, NA, NA, "time to schedule first save event"),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stackName<-SpaDES.core::P(sim)$stackName# Plot doesn't like long names -- create local variable^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defineParameter("inRAM", "logical", FALSE, TRUE, FALSE, "should the raster be stored in memory?"),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defineParameter("nx", "numeric", 100L, 10L, 500L, "size of map (number of pixels) in the x dimension"),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defineParameter("ny", "numeric", 100L, 10L, 500L, "size of map (number of pixels) in the y dimension"),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defineParameter(".saveInitialTime", "numeric", NA_real_, NA, NA, "time to schedule first save event"),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defineParameter(".useCache", "logical", FALSE, c("init", "plot"), NA, "should the module result be cached for future use")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defineParameter(".plotInitialTime", "numeric", NA_real_, NA, NA, "This describes the simulation time at which the first plot event should occur"),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
defineParameter(".saveInitialTime", "numeric", NA_real_, NA, NA, "This describes the simulation time at which the first save event should occur")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/cache.R:364:1:style:Lines should not be more than 100 characters.
which(internalSimList)[1] # this can be wrongly of length > 1 -- unclear why, but should be safe to take 1st^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/cache.R:373:1:style:Lines should not be more than 100 characters.
R/cache.R:455:1:style:Lines should not be more than 100 characters.
# makes soft copy of all objects, i.e., they have the identical objects, which are pointers only^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/cache.R:471:1:style:Lines should not be more than 100 characters.
createOutputs<- c(createOutputs, currModules) # add the environments for each module - allow local objects^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/cache.R:522:1:style:Lines should not be more than 100 characters.
# This is for objects that are not in the return environment yet because they are unrelated to the^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/cache.R:535:10:style:Place a space before left parenthesis, except in a function call.
zipFiles<- grep(file.path(name, "data"), zipFiles, invert=TRUE, value=TRUE) # remove any zip in data folder^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#metadata <- eval(parse(text = x)) # can't be used because can't evaluate start(sim)^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4eed037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inst/examples/example_experiment.R:91:5: style: Commented code should be removed.
inst/examples/example_experiment.R:92:5: style: Commented code should be removed.
inst/examples/example_experiment.R:96:5: style: Commented code should be removed.
inst/examples/example_experiment.R:152:5: style: Commented code should be removed.
inst/examples/example_POM.R:48:5: style: Commented code should be removed.
inst/examples/example_POM.R:83:4: style: Commented code should be removed.
inst/examples/example_POM.R:106:34: style: Variable or function name should be lowerCamelCase.
inst/examples/example_POM.R:113:5: style: Variable or function name should be lowerCamelCase.
inst/examples/example_POM.R:119:7: style: Commented code should be removed.
inst/examples/example_POM.R:120:7: style: Commented code should be removed.
inst/examples/example_POM.R:121:7: style: Commented code should be removed.
inst/examples/example_POM.R:122:7: style: Commented code should be removed.
inst/sampleModules/caribouMovement/caribouMovement.R:1:1: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/caribouMovement/caribouMovement.R:54:1: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/caribouMovement/caribouMovement.R:78:1: style: Lines should not be more than 100 characters.
inst/sampleModules/caribouMovement/caribouMovement.R:82:1: style: Lines should not be more than 100 characters.
inst/sampleModules/caribouMovement/caribouMovement.R:86:1: style: Lines should not be more than 100 characters.
inst/sampleModules/caribouMovement/caribouMovement.R:90:1: style: Lines should not be more than 100 characters.
inst/sampleModules/caribouMovement/caribouMovement.R:95:1: style: Lines should not be more than 100 characters.
inst/sampleModules/caribouMovement/caribouMovement.R:102:1: style: Lines should not be more than 100 characters.
inst/sampleModules/caribouMovement/caribouMovement.R:114:1: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/caribouMovement/caribouMovement.R:121:3: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/caribouMovement/caribouMovement.R:122:3: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/caribouMovement/caribouMovement.R:138:1: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/fireSpread/fireSpread.R:1:1: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/fireSpread/fireSpread.R:20:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:21:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:35:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:37:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:38:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:39:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:41:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:42:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:45:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:51:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:59:1: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/fireSpread/fireSpread.R:80:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:87:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:88:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:108:1: style: Lines should not be more than 100 characters.
inst/sampleModules/fireSpread/fireSpread.R:143:1: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/fireSpread/fireSpread.R:147:3: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/fireSpread/fireSpread.R:151:3: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/fireSpread/fireSpread.R:154:14: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/fireSpread/fireSpread.R:160:1: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/fireSpread/fireSpread.R:163:3: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/fireSpread/fireSpread.R:175:14: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/fireSpread/fireSpread.R:182:1: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/randomLandscapes/randomLandscapes.R:1:1: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/randomLandscapes/randomLandscapes.R:33:1: style: Lines should not be more than 100 characters.
inst/sampleModules/randomLandscapes/randomLandscapes.R:34:1: style: Lines should not be more than 100 characters.
inst/sampleModules/randomLandscapes/randomLandscapes.R:35:1: style: Lines should not be more than 100 characters.
inst/sampleModules/randomLandscapes/randomLandscapes.R:37:1: style: Lines should not be more than 100 characters.
inst/sampleModules/randomLandscapes/randomLandscapes.R:38:1: style: Lines should not be more than 100 characters.
inst/sampleModules/randomLandscapes/randomLandscapes.R:39:1: style: Lines should not be more than 100 characters.
inst/sampleModules/randomLandscapes/randomLandscapes.R:40:1: style: Lines should not be more than 100 characters.
inst/sampleModules/randomLandscapes/randomLandscapes.R:41:1: style: Lines should not be more than 100 characters.
inst/sampleModules/randomLandscapes/randomLandscapes.R:49:1: style: Lines should not be more than 100 characters.
inst/sampleModules/randomLandscapes/randomLandscapes.R:55:1: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/randomLandscapes/randomLandscapes.R:63:1: style: Lines should not be more than 100 characters.
inst/sampleModules/randomLandscapes/randomLandscapes.R:64:1: style: Lines should not be more than 100 characters.
inst/sampleModules/randomLandscapes/randomLandscapes.R:76:1: style: Lines should not be more than 100 characters.
inst/sampleModules/randomLandscapes/randomLandscapes.R:87:1: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/randomLandscapes/randomLandscapes.R:101:5: style: Variable or function name should be lowerCamelCase.
inst/sampleModules/SpaDES_sampleModules/SpaDES_sampleModules.R:17:1: style: Lines should not be more than 100 characters.
inst/sampleModules/SpaDES_sampleModules/SpaDES_sampleModules.R:18:1: style: Lines should not be more than 100 characters.
R/cache.R:83:6: style: Commented code should be removed.
R/cache.R:132:22: style: Variable or function name should be lowerCamelCase.
R/cache.R:133:22: style: Variable or function name should be lowerCamelCase.
R/cache.R:241:50: style: Commas should always have a space after.
R/cache.R:254:50: style: Commas should always have a space after.
R/cache.R:304:10: style: Commented code should be removed.
R/cache.R:346:8: style: Commented code should be removed.
R/cache.R:364:1: style: Lines should not be more than 100 characters.
R/cache.R:373:1: style: Lines should not be more than 100 characters.
R/cache.R:381:6: style: Commented code should be removed.
R/cache.R:455:1: style: Lines should not be more than 100 characters.
R/cache.R:471:1: style: Lines should not be more than 100 characters.
R/cache.R:487:36: style: Put spaces around all infix operators.
R/cache.R:487:41: style: Opening curly braces should never go on their own line and should always be followed by a new line.
R/cache.R:496:63: style: Put spaces around all infix operators.
R/cache.R:500:42: style: Opening curly braces should never go on their own line and should always be followed by a new line.
R/cache.R:503:42: style: Opening curly braces should never go on their own line and should always be followed by a new line.
R/cache.R:510:1: style: Lines should not be more than 100 characters.
R/cache.R:513:56: style: Opening curly braces should never go on their own line and should always be followed by a new line.
R/cache.R:515:1: style: Lines should not be more than 100 characters.
R/cache.R:518:12: style: Commented code should be removed.
R/cache.R:522:1: style: Lines should not be more than 100 characters.
R/cache.R:535:10: style: Place a space before left parenthesis, except in a function call.
R/cache.R:537:10: style: Commented code should be removed.
R/cache.R:573:66: style: Variable or function name should be lowerCamelCase.
R/cache.R:596:48: style: Variable or function name should be lowerCamelCase.
R/cache.R:607:8: style: Commented code should be removed.
R/cache.R:608:8: style: Commented code should be removed.
R/cache.R:611:11: style: Commented code should be removed.
R/cache.R:699:1: style: Variable or function name should be lowerCamelCase.
R/cache.R:725:1: style: Variable or function name should be lowerCamelCase.
R/cache.R:733:1: style: Variable or function name should be lowerCamelCase.
R/cache.R:758:6: style: Commented code should be removed.
R/check.R:151:7: style: Commented code should be removed.
R/check.R:152:7: style: Commented code should be removed.
R/checkpoint.R:36:1: style: Variable or function name should be lowerCamelCase.
R/code-checking.R:86:1: style: Lines should not be more than 100 characters.
R/code-checking.R:90:16: style: Commented code should be removed.
R/code-checking.R:91:53: style: Commas should always have a space after.
R/code-checking.R:144:39: style: Opening curly braces should never go on their own line and should always be followed by a new line.
R/code-checking.R:182:48: style: Do not place spaces around code in parentheses or square brackets.
R/code-checking.R:185:62: style: Opening curly braces should never go on their own line and should always be followed by a new line.
R/code-checking.R:202:19: style: Place a space before left parenthesis, except in a function call.
R/code-checking.R:218:29: style: Place a space before left parenthesis, except in a function call.
R/code-checking.R:319:1: style: Lines should not be more than 100 characters.
R/code-checking.R:367:51: style: Commas should always have a space after.
R/code-checking.R:367:56: style: Commas should always have a space after.
R/code-checking.R:383:20: style: Commas should always have a space after.
R/code-checking.R:383:25: style: Commas should always have a space after.
R/code-checking.R:394:90: style: Commas should always have a space after.
R/code-checking.R:439:75: style: Commas should always have a space after.
R/code-checking.R:453:1: style: Lines should not be more than 100 characters.
R/code-checking.R:470:1: style: Lines should not be more than 100 characters.
R/code-checking.R:662:6: style: Commented code should be removed.
R/code-checking.R:666:34: style: Commas should always have a space after.
R/code-checking.R:666:64: style: Commas should always have a space after.
R/code-checking.R:666:79: style: Do not place spaces around code in parentheses or square brackets.
R/copy.R:37:13: style: Variable or function name should be lowerCamelCase.
R/copy.R:42:14: style: Commented code should be removed.
R/copy.R:43:14: style: Commented code should be removed.
R/copy.R:93:1: style: Trailing blank lines are superfluous.
^
R/copy.R:94:1: style: Trailing blank lines are superfluous.
^
R/downloadData.R:55:96: style: Do not place spaces around code in parentheses or square brackets.
R/downloadData.R:245:7: style: Commented code should be removed.
R/downloadData.R:246:7: style: Commented code should be removed.
R/downloadData.R:253:8: style: Commented code should be removed.
R/downloadData.R:278:27: style: Commas should always have a space after.
R/downloadData.R:279:6: style: Commented code should be removed.
R/experiment.R:214:7: style: Commented code should be removed.
R/experiment.R:215:7: style: Commented code should be removed.
R/experiment.R:217:6: style: Commented code should be removed.
R/experiment.R:221:11: style: Commented code should be removed.
R/experiment.R:313:58: style: Commented code should be removed.
R/experiment.R:356:11: style: Variable or function name should be lowerCamelCase.
R/helpers.R:232:74: style: Place a space before left parenthesis, except in a function call.
R/helpers.R:264:1: style: Variable or function name should be lowerCamelCase.
R/helpers.R:280:5: style: Commented code should be removed.
R/helpers.R:281:5: style: Commented code should be removed.
R/helpers.R:282:5: style: Commented code should be removed.
R/helpers.R:283:5: style: Commented code should be removed.
R/helpers.R:284:5: style: Commented code should be removed.
R/helpers.R:285:5: style: Commented code should be removed.
R/load.R:127:55: style: Commas should always have a space after.
R/load.R:207:1: style: Lines should not be more than 100 characters.
R/misc-methods.R:463:55: style: Do not place spaces around code in parentheses or square brackets.
R/misc-methods.R:633:1: style: Variable or function name should be lowerCamelCase.
R/misc-methods.R:649:14: style: Variable or function name should be lowerCamelCase.
R/misc-methods.R:653:14: style: Variable or function name should be lowerCamelCase.
R/misc-methods.R:657:14: style: Variable or function name should be lowerCamelCase.
R/misc-methods.R:661:14: style: Variable or function name should be lowerCamelCase.
R/misc-methods.R:684:68: style: Commas should never have a space before.
R/misc-methods.R:700:1: style: Trailing blank lines are superfluous.
^
R/module-define.R:743:63: style: Do not place spaces around code in parentheses or square brackets.
R/module-dependencies-class.R:53:13: style: Variable or function name should be lowerCamelCase.
R/module-dependencies-class.R:171:9: style: Do not place spaces around code in parentheses or square brackets.
R/module-dependencies-class.R:171:81: style: Do not place spaces around code in parentheses or square brackets.
R/module-dependencies-methods.R:43:5: style: Variable or function name should be lowerCamelCase.
R/module-dependencies-methods.R:56:3: style: Variable or function name should be lowerCamelCase.
R/module-dependencies-methods.R:56:13: style: Variable or function name should be lowerCamelCase.
R/module-dependencies-methods.R:61:7: style: Variable or function name should be lowerCamelCase.
R/module-dependencies-methods.R:62:7: style: Variable or function name should be lowerCamelCase.
R/module-dependencies-methods.R:65:9: style: Variable or function name should be lowerCamelCase.
R/module-dependencies-methods.R:68:9: style: Variable or function name should be lowerCamelCase.
R/module-dependencies-methods.R:80:5: style: Variable or function name should be lowerCamelCase.
R/module-dependencies-methods.R:83:15: style: Variable or function name should be lowerCamelCase.
R/module-dependencies-methods.R:85:5: style: Variable or function name should be lowerCamelCase.
R/module-dependencies-methods.R:162:5: style: Variable or function name should be lowerCamelCase.
R/module-dependencies-methods.R:194:39: style:
%>%
should always have a space before it and a new line after it, unless the full pipeline fits on one line.R/module-dependencies-methods.R:208:26: style:
%>%
should always have a space before it and a new line after it, unless the full pipeline fits on one line.R/module-dependencies-methods.R:244:79: style: Do not place spaces around code in parentheses or square brackets.
R/module-repository.R:50:1: style: Lines should not be more than 100 characters.
R/module-repository.R:294:8: style: Commented code should be removed.
R/module-repository.R:306:1: style: Lines should not be more than 100 characters.
R/moduleMetadata.R:73:6: style: Commented code should be removed.