{"action":"created","issue":{"url":"https://api.github.com/repos/PredictiveEcology/SpaDES/issues/164","labels_url":"https://api.github.com/repos/PredictiveEcology/SpaDES/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/PredictiveEcology/SpaDES/issues/164/comments","events_url":"https://api.github.com/repos/PredictiveEcology/SpaDES/issues/164/events","html_url":"https://github.com/PredictiveEcology/SpaDES/issues/164","id":68221555,"number":164,"title":"errors in `loadFiles`","user":{"login":"achubaty","id":3435577,"avatar_url":"https://avatars.githubusercontent.com/u/3435577?v=3","gravatar_id":"","url":"https://api.github.com/users/achubaty","html_url":"https://github.com/achubaty","followers_url":"https://api.github.com/users/achubaty/followers","following_url":"https://api.github.com/users/achubaty/following{/other_user}","gists_url":"https://api.github.com/users/achubaty/gists{/gist_id}","starred_url":"https://api.github.com/users/achubaty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achubaty/subscriptions","organizations_url":"https://api.github.com/users/achubaty/orgs","repos_url":"https://api.github.com/users/achubaty/repos","events_url":"https://api.github.com/users/achubaty/events{/privacy}","received_events_url":"https://api.github.com/users/achubaty/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PredictiveEcology/SpaDES/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"eliotmcintire","id":1100507,"avatar_url":"https://avatars.githubusercontent.com/u/1100507?v=3","gravatar_id":"","url":"https://api.github.com/users/eliotmcintire","html_url":"https://github.com/eliotmcintire","followers_url":"https://api.github.com/users/eliotmcintire/followers","following_url":"https://api.github.com/users/eliotmcintire/following{/other_user}","gists_url":"https://api.github.com/users/eliotmcintire/gists{/gist_id}","starred_url":"https://api.github.com/users/eliotmcintire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliotmcintire/subscriptions","organizations_url":"https://api.github.com/users/eliotmcintire/orgs","repos_url":"https://api.github.com/users/eliotmcintire/repos","events_url":"https://api.github.com/users/eliotmcintire/events{/privacy}","received_events_url":"https://api.github.com/users/eliotmcintire/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/PredictiveEcology/SpaDES/milestones/3","html_url":"https://github.com/PredictiveEcology/SpaDES/milestones/v0.6.1","labels_url":"https://api.github.com/repos/PredictiveEcology/SpaDES/milestones/3/labels","id":931106,"number":3,"title":"v0.6.1","description":"* added the Queen as copyright holder\r\n* modules now require metadata; module code without it will break!\r\n\r\n    - new module dependency checking and metadata structure (#126)\r\n    - deprecated use of `reloadModuleLater`\r\n\r\n* new module directory structure (#125):\r\n\r\n        moduleName/\r\n        |_ moduleName.R    # the actual module code file, incl. module metadata\r\n        |_ moduleName.Rmd  # longform documentation and usage info, etc.\r\n        |_ citation.bib    # properly formatted bibtex citation for the module\r\n        |_ LICENSE         # license file describing the allowed usage etc. of the module\r\n        |_ README          # incl. module metadata in addition to version change info, etc.\r\n\r\n* added new relational operators (`%>=%`, `%<=%`, ``%==%, `%!=%`) to account for floating point errors\r\n* added `dplyr`, `magrittr`, and `httr` to `Imports`\r\n* updated vignettes; new `getting-started` vignette\r\n* bug fixes","creator":{"login":"eliotmcintire","id":1100507,"avatar_url":"https://avatars.githubusercontent.com/u/1100507?v=3","gravatar_id":"","url":"https://api.github.com/users/eliotmcintire","html_url":"https://github.com/eliotmcintire","followers_url":"https://api.github.com/users/eliotmcintire/followers","following_url":"https://api.github.com/users/eliotmcintire/following{/other_user}","gists_url":"https://api.github.com/users/eliotmcintire/gists{/gist_id}","starred_url":"https://api.github.com/users/eliotmcintire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliotmcintire/subscriptions","organizations_url":"https://api.github.com/users/eliotmcintire/orgs","repos_url":"https://api.github.com/users/eliotmcintire/repos","events_url":"https://api.github.com/users/eliotmcintire/events{/privacy}","received_events_url":"https://api.github.com/users/eliotmcintire/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":19,"state":"open","created_at":"2015-01-12T07:35:21Z","updated_at":"2015-04-14T06:34:45Z","due_on":"2015-04-21T07:00:00Z","closed_at":null},"comments":2,"created_at":"2015-04-13T23:48:24Z","updated_at":"2015-04-14T06:34:45Z","closed_at":"2015-04-14T06:34:45Z","body":"## first problem\r\n\r\nproblem appears when checking examples (line 99) of `load.R`\r\n\r\n```r\r\n> Plot(DEM)\r\nError in extent(getGlobal(x[[1]]@objName)) : \r\n  error in evaluating the argument 'x' in selecting a method for function 'extent': Error in get(x, envir = .GlobalEnv, ...) : \r\n  object 'caribou1Arrows' not found\r\nCalls: getGlobal -> getGlobal -> get\r\nCalls: Plot ... sapply -> lapply -> FUN -> unname -> lapply -> FUN -> extent\r\n```\r\n\r\n## second problem\r\n\r\nit looks like another error is also happening in other sample code where `loadFiles` is used, *e.g.*, `test-Plot.R` (see #166):\r\n\r\n```r\r\n1. Error: Plot - check for errors ----------------------------------------------\r\nreplacement has 1 row, data has 0\r\n1: withCallingHandlers(eval(code, new_test_environment), error = capture_calls)\r\n2: eval(code, new_test_environment)\r\n3: eval(expr, envir, enclos)\r\n4: loadFiles(fileList = fileList) at test-Plot.R:11\r\n5: loadFiles(fileList = fileList) at load.R:120\r\n6: simInit(times = list(start = 0, stop = 1), params = list(.globals = list(.stackName = stackName), \r\n       .load = list(fileList = fileList)), modules = list(), path = \".\") at load.R:342\r\n7: simInit(times = list(start = 0, stop = 1), params = list(.globals = list(.stackName = stackName), \r\n       .load = list(fileList = fileList)), modules = list(), path = \".\") at simulation.R:55\r\n8: .local(times, params, modules, path)\r\n9: simInit(times = times, params = params, modules = modules, path = path, loadOrder = character()) at simulation.R:216\r\n10: simInit(times = times, params = params, modules = modules, path = path, loadOrder = character()) at simulation.R:55\r\n11: loadFiles(sim) at simulation.R:192\r\n12: loadFiles(sim) at load.R:120\r\n13: `[<-`(`*tmp*`, \"loadTime\", value = 0) at load.R:158\r\n14: `[<-.data.frame`(`*tmp*`, \"loadTime\", value = 0) at load.R:158\r\n15: stop(sprintf(ngettext(N, \"replacement has %d row, data has %d\", \"replacement has %d rows, data has %d\"), \r\n       N, n), domain = NA)\r\n16: .handleSimpleError(function (e) \r\n   {\r\n       e$calls <- head(sys.calls()[-seq_len(frame + 7)], -2)\r\n       signalCondition(e)\r\n   }, \"replacement has 1 row, data has 0\", quote(`[<-.data.frame`(`*tmp*`, \"loadTime\", \r\n       value = 0)))\r\n```"},"comment":{"url":"https://api.github.com/repos/PredictiveEcology/SpaDES/issues/comments/92647533","html_url":"https://github.com/PredictiveEcology/SpaDES/issues/164#issuecomment-92647533","issue_url":"https://api.github.com/repos/PredictiveEcology/SpaDES/issues/164","id":92647533,"user":{"login":"eliotmcintire","id":1100507,"avatar_url":"https://avatars.githubusercontent.com/u/1100507?v=3","gravatar_id":"","url":"https://api.github.com/users/eliotmcintire","html_url":"https://github.com/eliotmcintire","followers_url":"https://api.github.com/users/eliotmcintire/followers","following_url":"https://api.github.com/users/eliotmcintire/following{/other_user}","gists_url":"https://api.github.com/users/eliotmcintire/gists{/gist_id}","starred_url":"https://api.github.com/users/eliotmcintire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliotmcintire/subscriptions","organizations_url":"https://api.github.com/users/eliotmcintire/orgs","repos_url":"https://api.github.com/users/eliotmcintire/repos","events_url":"https://api.github.com/users/eliotmcintire/events{/privacy}","received_events_url":"https://api.github.com/users/eliotmcintire/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T06:34:45Z","updated_at":"2015-04-14T06:34:45Z","body":"I checked both instances of problem and they are fixed."}}