Closed colinpmillar closed 6 years ago
R/findAssessmentKey.R:41:42: style: Commas should always have a space after.
out <- out[out$Status == "Published",]
^
R/findAssessmentKey.R:50:23: style: Commas should always have a space after.
out <- out[select,]
^
R/getGraph.R:85:1: style: Variable and function names should not be longer than 30 characters.
getFishingMortalityHistoricalPerformance <- getLandingsGraph
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/getGraph.R:89:1: style: Variable and function names should not be longer than 30 characters.
getRecruitmentHistoricalPerformance <- getLandingsGraph
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/SAGtokens.R:33:59: style: Only use double-quotes.
uri <- sag_uri("getTokenExpiration", token = Sys.getenv('SG_PAT'))
^~~~~~~~
R/SAGtokens.R:46:8: style: Place a space before left parenthesis, except in a function call.
while(!.sg_envir$.sg_tokenOK) {
^
R/SAGtokens.R:60:14: style: Only use double-quotes.
Sys.getenv('SG_PAT')
^~~~~~~~
R/SAGtokens.R:62:1: style: Trailing blank lines are superfluous.
^
R/SAGxml.R:54:1: style: Lines should not be more than 120 characters.
"<Assessment xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='ICES_Standard_Graphs.xsd'>",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/SAGxml.R:351:1: style: Lines should not be more than 120 characters.
errors$StockCode <- paste0("non valid stock code (", info$StockCode,"). Did you mean on of these: ", paste(part1, maybe[maybeid], sep = ".", collapse = ", "), "?")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/SAGxml.R:351:74: style: Commas should always have a space after.
errors$StockCode <- paste0("non valid stock code (", info$StockCode,"). Did you mean on of these: ", paste(part1, maybe[maybeid], sep = ".", collapse = ", "), "?")
^
R/uploadStock.R:87:1: style: Lines should not be more than 120 characters.
message(sprintf("To check upload run (with 'options(icesSAG.use_token = TRUE)'): \n findAssessmentKey('%s', %s, full = TRUE)", info$StockCode, info$AssessmentYear))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/uploadStock.R:88:4: style: Commented code should be removed.
#res <- capture.output(findAssessmentKey(info$StockCode, info$AssessmentYear, full = TRUE))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/uploadStock.R:89:4: style: Commented code should be removed.
#message("\n", paste(res, collapse = "\n"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/uploadXMLFile.R:7:8: style: Commented code should be removed.
# message("POSTing ... ", uri)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/uploadXMLFile.R:20:1: style: Trailing blank lines are superfluous.
^
R/utilities.R:176:29: style: Commas should always have a space after.
keep <- which(keep)[seq(1,sum(keep), by = 2)]
^
R/utilities.R:208:21: style: Put spaces around all infix operators.
x_loc <- rep((1:r)/r - 1/(2*r), c)
~^~
R/utilities.R:208:27: style: Put spaces around all infix operators.
x_loc <- rep((1:r)/r - 1/(2*r), c)
~^~
R/utilities.R:208:28: style: Place a space before left parenthesis, except in a function call.
x_loc <- rep((1:r)/r - 1/(2*r), c)
^
R/utilities.R:208:30: style: Put spaces around all infix operators.
x_loc <- rep((1:r)/r - 1/(2*r), c)
~^~
R/utilities.R:209:21: style: Put spaces around all infix operators.
y_loc <- rep((c:1)/c - 1/(2*c), each = r)
~^~
R/utilities.R:209:28: style: Put spaces around all infix operators.
y_loc <- rep((c:1)/c - 1/(2*c), each = r)
~^~
R/utilities.R:209:29: style: Place a space before left parenthesis, except in a function call.
y_loc <- rep((c:1)/c - 1/(2*c), each = r)
^
R/utilities.R:209:31: style: Put spaces around all infix operators.
y_loc <- rep((c:1)/c - 1/(2*c), each = r)
~^~
R/utilities.R:212:70: style: Put spaces around all infix operators.
grid::grid.raster(x[[i]], x = x_loc[i], y = y_loc[i], width = 1/r, height = 1/c)
~^~
R/utilities.R:212:84: style: Put spaces around all infix operators.
grid::grid.raster(x[[i]], x = x_loc[i], y = y_loc[i], width = 1/r, height = 1/c)
~^~
R/utilities.R:260:1: style: Trailing blank lines are superfluous.
^
R/WSDL_parser.R:40:1: style: Trailing blank lines are superfluous.
^
R/getGraph.R:85:1: style: Variable and function names should not be longer than 30 characters.
getFishingMortalityHistoricalPerformance <- getLandingsGraph
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/getGraph.R:89:1: style: Variable and function names should not be longer than 30 characters.
getRecruitmentHistoricalPerformance <- getLandingsGraph
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/SAGxml.R:54:1: style: Lines should not be more than 120 characters.
"<Assessment xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='ICES_Standard_Graphs.xsd'>",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/checkKeyArg.R:1:1: style: Variable or function name should be snake_case.
R/checkKeyArg.R:1:25: style: Variable or function name should be snake_case.
R/checkKeyArg.R:2:1: style: Opening curly braces should never go on their own line and should always be followed by a new line.
R/checkKeyArg.R:4:3: style: Opening curly braces should never go on their own line and should always be followed by a new line.
R/checkKeyArg.R:7:5: style: Opening curly braces should never go on their own line and should always be followed by a new line.
R/checkKeyArg.R:8:7: style: Variable or function name should be snake_case.
R/checkKeyArg.R:9:1: style: Lines should not be more than 80 characters.
R/findAssessmentKey.R:5:1: style: Lines should not be more than 80 characters.
R/findAssessmentKey.R:8:1: style: Lines should not be more than 80 characters.
R/findAssessmentKey.R:9:1: style: Lines should not be more than 80 characters.
R/findAssessmentKey.R:33:1: style: Lines should not be more than 80 characters.
R/findAssessmentKey.R:33:1: style: Variable or function name should be snake_case.
R/findAssessmentKey.R:35:38: warning: no visible binding for global variable ‘getListStocks’
R/findAssessmentKey.R:41:42: style: Commas should always have a space after.
R/findAssessmentKey.R:50:23: style: Commas should always have a space after.
R/findAssessmentKey.R:64:1: style: Lines should not be more than 80 characters.
R/findAssessmentKey.R:64:1: style: Variable or function name should be snake_case.
R/findAssessmentKey.R:66:3: warning: no visible global function definition for ‘findAssessmentKey’
R/getFishStockReferencePoints.R:34:1: style: Variable or function name should be snake_case.
R/getFishStockReferencePoints.R:34:41: style: Variable or function name should be snake_case.
R/getFishStockReferencePoints.R:36:3: style: Variable or function name should be snake_case.
R/getFishStockReferencePoints.R:36:20: warning: no visible global function definition for ‘checkKeyArg’
R/getFishStockReferencePoints.R:39:1: style: Lines should not be more than 80 characters.
R/getFishStockReferencePoints.R:39:44: warning: no visible global function definition for ‘sag_webservice’
R/getFishStockReferencePoints.R:42:15: warning: no visible binding for global variable ‘sag_parse’
R/getGraph.R:34:1: style: Variable or function name should be snake_case.
R/getGraph.R:34:30: style: Variable or function name should be snake_case.
R/getGraph.R:36:3: style: Variable or function name should be snake_case.
R/getGraph.R:36:20: warning: no visible global function definition for ‘checkKeyArg’
R/getGraph.R:39:1: style: Lines should not be more than 80 characters.
R/getGraph.R:43:1: style: Lines should not be more than 80 characters.
R/getGraph.R:43:44: warning: no visible global function definition for ‘sag_webservice’
R/getGraph.R:46:22: warning: no visible binding for global variable ‘sag_parse’
R/getGraph.R:57:1: style: Variable or function name should be snake_case.
R/getGraph.R:61:1: style: Variable or function name should be snake_case.
R/getGraph.R:65:1: style: Variable or function name should be snake_case.
R/getGraph.R:69:1: style: Variable or function name should be snake_case.
R/getGraph.R:77:1: style: Variable or function name should be snake_case.
R/getGraph.R:81:1: style: Variable or function name should be snake_case.
R/getGraph.R:85:1: style: Variable and function names should not be longer than 30 characters.
R/getGraph.R:85:1: style: Variable or function name should be snake_case.
R/getGraph.R:89:1: style: Variable and function names should not be longer than 30 characters.
R/getGraph.R:89:1: style: Variable or function name should be snake_case.
R/getGraph.R:93:1: style: Variable or function name should be snake_case.
R/getLatestStockAdviceList.R:23:1: style: Variable or function name should be snake_case.
R/getLatestStockAdviceList.R:25:10: warning: no visible global function definition for ‘sag_webservice’
R/getLatestStockAdviceList.R:28:3: warning: no visible global function definition for ‘sag_parse’
R/getListStocks.R:24:1: style: Variable or function name should be snake_case.
R/getListStocks.R:26:35: warning: no visible global function definition for ‘sag_webservice’
R/getListStocks.R:29:30: warning: no visible binding for global variable ‘sag_parse’
R/getSAG.R:43:1: style: Lines should not be more than 80 characters.
R/getSAG.R:43:1: style: Variable or function name should be snake_case.
R/getSAG.R:52:3: style: Variable or function name should be snake_case.
R/getSAG.R:52:20: warning: no visible global function definition for ‘findAssessmentKey’
R/getSAG.R:63:5: style: Variable or function name should be snake_case.
R/getSAG.R:70:11: style: Variable or function name should be snake_case.
R/getSAG.R:80:12: warning: no visible global function definition for ‘simplify’
R/getSAGGraphs.R:30:1: style: Variable or function name should be snake_case.
R/getSAGGraphs.R:30:26: style: Variable or function name should be snake_case.
R/getSAGGraphs.R:31:3: style: Variable or function name should be snake_case.
R/getSAGGraphs.R:31:20: warning: no visible global function definition for ‘checkKeyArg’
R/getSAGGraphs.R:35:5: style: Variable or function name should be snake_case.
R/getSAGTypeGraphsSettings.R:3:1: style: Lines should not be more than 80 characters.
R/getSAGTypeGraphsSettings.R:21:1: style: Variable or function name should be snake_case.
R/getSAGTypeGraphsSettings.R:23:10: warning: no visible global function definition for ‘sag_webservice’
R/getSAGTypeGraphsSettings.R:26:3: warning: no visible global function definition for ‘sag_parse’
R/getSAGTypeGraphsSettings.R:31:1: style: Variable or function name should be snake_case.
R/getSAGTypeGraphsSettings.R:31:32: style: Variable or function name should be snake_case.
R/getSAGTypeGraphsSettings.R:33:10: warning: no visible global function definition for ‘sag_webservice’
R/getSAGTypeGraphsSettings.R:36:3: warning: no visible global function definition for ‘sag_parse’
R/getsetSettingsForAStock.R:7:1: style: Lines should not be more than 80 characters.
R/getsetSettingsForAStock.R:9:1: style: Lines should not be more than 80 characters.
R/getsetSettingsForAStock.R:11:1: style: Lines should not be more than 80 characters.
R/getsetSettingsForAStock.R:38:1: style: Variable or function name should be snake_case.
R/getsetSettingsForAStock.R:38:37: style: Variable or function name should be snake_case.
R/getsetSettingsForAStock.R:40:1: style: Lines should not be more than 80 characters.
R/getsetSettingsForAStock.R:40:10: warning: no visible global function definition for ‘sag_webservice’
R/getsetSettingsForAStock.R:43:3: warning: no visible global function definition for ‘sag_parse’
R/getsetSettingsForAStock.R:48:1: style: Lines should not be more than 80 characters.
R/getsetSettingsForAStock.R:48:1: style: Variable or function name should be snake_case.
R/getsetSettingsForAStock.R:48:36: style: Variable or function name should be snake_case.
R/getsetSettingsForAStock.R:48:51: style: Variable or function name should be snake_case.
R/getsetSettingsForAStock.R:48:61: style: Variable or function name should be snake_case.
R/getsetSettingsForAStock.R:48:73: style: Variable or function name should be snake_case.
R/getsetSettingsForAStock.R:48:87: style: Variable or function name should be snake_case.
R/getsetSettingsForAStock.R:53:1: style: Lines should not be more than 80 characters.
R/getsetSettingsForAStock.R:56:13: warning: no visible global function definition for ‘simplify’
R/getStockDownloadData.R:33:1: style: Variable or function name should be snake_case.
R/getStockDownloadData.R:33:34: style: Variable or function name should be snake_case.
R/getStockDownloadData.R:34:3: style: Variable or function name should be snake_case.
R/getStockDownloadData.R:34:20: warning: no visible global function definition for ‘checkKeyArg’
R/getStockDownloadData.R:37:1: style: Lines should not be more than 80 characters.
R/getStockDownloadData.R:37:44: warning: no visible global function definition for ‘sag_webservice’
R/getStockDownloadData.R:40:15: warning: no visible binding for global variable ‘sag_parse’
R/getStockDownloadData.R:45:1: style: Variable or function name should be snake_case.
R/getStockDownloadData.R:45:32: style: Variable or function name should be snake_case.
R/getStockDownloadData.R:46:3: style: Variable or function name should be snake_case.
R/getStockDownloadData.R:46:20: warning: no visible global function definition for ‘checkKeyArg’
R/getStockDownloadData.R:54:1: style: Lines should not be more than 80 characters.
R/getStockDownloadData.R:54:44: warning: no visible global function definition for ‘sag_documentService_uri’
R/getStockDownloadData.R:61:1: style: Lines should not be more than 80 characters.
R/getStockDownloadData.R:64:7: warning: no visible global function definition for ‘readSAGxml’
R/getStockDownloadData.R:71:1: style: Lines should not be more than 80 characters.
R/getStockStatusValues.R:31:1: style: Variable or function name should be snake_case.
R/getStockStatusValues.R:31:34: style: Variable or function name should be snake_case.
R/getStockStatusValues.R:33:3: style: Variable or function name should be snake_case.
R/getStockStatusValues.R:33:20: warning: no visible global function definition for ‘checkKeyArg’
R/getStockStatusValues.R:36:1: style: Lines should not be more than 80 characters.
R/getStockStatusValues.R:36:44: warning: no visible global function definition for ‘sag_webservice’
R/getStockStatusValues.R:39:15: warning: no visible binding for global variable ‘sag_parse’
R/getSummaryTable.R:31:1: style: Variable or function name should be snake_case.
R/getSummaryTable.R:31:29: style: Variable or function name should be snake_case.
R/getSummaryTable.R:33:3: style: Variable or function name should be snake_case.
R/getSummaryTable.R:33:20: warning: no visible global function definition for ‘checkKeyArg’
R/getSummaryTable.R:36:1: style: Lines should not be more than 80 characters.
R/getSummaryTable.R:36:44: warning: no visible global function definition for ‘sag_webservice’
R/getSummaryTable.R:39:15: warning: no visible binding for global variable ‘sag_parse’
R/getYSBRSummaryTable.R:30:1: style: Variable or function name should be snake_case.
R/getYSBRSummaryTable.R:30:33: style: Variable or function name should be snake_case.
R/getYSBRSummaryTable.R:32:3: style: Variable or function name should be snake_case.
R/getYSBRSummaryTable.R:32:20: warning: no visible global function definition for ‘checkKeyArg’
R/getYSBRSummaryTable.R:35:1: style: Lines should not be more than 80 characters.
R/getYSBRSummaryTable.R:35:44: warning: no visible global function definition for ‘sag_webservice’
R/getYSBRSummaryTable.R:38:15: warning: no visible binding for global variable ‘sag_parse’
R/SAGtokens.R:5:11: style: Variable or function name should be snake_case.
R/SAGtokens.R:30:1: style: Variable or function name should be snake_case.
R/SAGtokens.R:32:19: warning: no visible binding for global variable ‘.sg_renviron’
R/SAGtokens.R:32:19: warning: no visible binding for global variable ‘.sg_renviron’
R/SAGtokens.R:33:10: warning: no visible global function definition for ‘sag_uri’
R/SAGtokens.R:33:59: style: Only use double-quotes.
R/SAGtokens.R:34:10: warning: no visible global function definition for ‘sag_get’
R/SAGtokens.R:44:27: warning: no visible global function definition for ‘getTokenExpiration’
R/SAGtokens.R:44:61: warning: no visible binding for global variable ‘.sg_envir’
R/SAGtokens.R:46:8: style: Place a space before left parenthesis, except in a function call.
R/SAGtokens.R:56:5: warning: local variable ‘tmp’ assigned but may not be used
R/SAGtokens.R:57:27: warning: no visible global function definition for ‘getTokenExpiration’
R/SAGtokens.R:57:61: warning: no visible binding for global variable ‘.sg_envir’
R/SAGtokens.R:60:14: style: Only use double-quotes.
R/SAGtokens.R:62:1: style: Trailing blank lines are superfluous.
R/SAGxml.R:3:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:10:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:33:1: style: Variable or function name should be snake_case.
R/SAGxml.R:36:33: style: Variable or function name should be snake_case.
R/SAGxml.R:53:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:54:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:58:33: warning: no visible global function definition for ‘validNames’
R/SAGxml.R:62:45: warning: no visible global function definition for ‘validNames’
R/SAGxml.R:68:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:75:1: style: Variable or function name should be snake_case.
R/SAGxml.R:79:3: warning: no visible global function definition for ‘sag_parse’
R/SAGxml.R:83:1: style: Variable or function name should be snake_case.
R/SAGxml.R:85:11: warning: no visible global function definition for ‘sag_parseTable’
R/SAGxml.R:86:19: warning: no visible binding for global variable ‘stockInfo’
R/SAGxml.R:89:15: warning: no visible global function definition for ‘sag_parseTable’
R/SAGxml.R:90:23: warning: no visible binding for global variable ‘stockFishdata’
R/SAGxml.R:99:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:100:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:105:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:109:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:114:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:127:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:160:1: style: Variable or function name should be snake_case.
R/SAGxml.R:160:23: style: Variable or function name should be snake_case.
R/SAGxml.R:160:34: style: Variable or function name should be snake_case.
R/SAGxml.R:160:50: style: Variable or function name should be snake_case.
R/SAGxml.R:160:65: style: Variable or function name should be snake_case.
R/SAGxml.R:161:23: style: Variable or function name should be snake_case.
R/SAGxml.R:161:43: style: Variable or function name should be snake_case.
R/SAGxml.R:161:54: style: Variable or function name should be snake_case.
R/SAGxml.R:171:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:174:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:174:7: style: Variable or function name should be snake_case.
R/SAGxml.R:175:30: warning: no visible global function definition for ‘validNames’
R/SAGxml.R:177:25: warning: no visible global function definition for ‘validNames’
R/SAGxml.R:182:14: warning: no visible global function definition for ‘validNames’
R/SAGxml.R:192:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:193:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:197:24: warning: no visible global function definition for ‘validNames’
R/SAGxml.R:207:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:208:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:215:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:223:1: style: Variable or function name should be snake_case.
R/SAGxml.R:223:27: style: Variable or function name should be snake_case.
R/SAGxml.R:229:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:232:30: warning: no visible global function definition for ‘validNames’
R/SAGxml.R:233:7: style: Variable or function name should be snake_case.
R/SAGxml.R:235:15: warning: no visible global function definition for ‘validNames’
R/SAGxml.R:245:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:246:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:250:24: warning: no visible global function definition for ‘validNames’
R/SAGxml.R:253:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:257:1: style: Variable or function name should be snake_case.
R/SAGxml.R:337:1: style: Variable or function name should be snake_case.
R/SAGxml.R:349:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:351:1: style: Lines should not be more than 80 characters.
R/SAGxml.R:351:12: style: Variable or function name should be snake_case.
R/SAGxml.R:351:74: style: Commas should always have a space after.
R/SAGxml.R:364:1: style: Variable or function name should be snake_case.
R/uploadStock.R:10:1: style: Lines should not be more than 80 characters.
R/uploadStock.R:22:1: style: Variable or function name should be snake_case.