From: Arnaud Giersch Date: Fri, 31 Jan 2020 09:32:35 +0000 (+0100) Subject: Trailing semicolons are not needed (codefactor.io/lintr). X-Git-Tag: v3.25~24 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f09bb64b852043292377203fcdeef18defe240de Trailing semicolons are not needed (codefactor.io/lintr). --- diff --git a/contrib/benchmarking_code_block/Rhist.R b/contrib/benchmarking_code_block/Rhist.R index 917be301a8..cf642c4b6d 100644 --- a/contrib/benchmarking_code_block/Rhist.R +++ b/contrib/benchmarking_code_block/Rhist.R @@ -20,7 +20,7 @@ merge_empty_bins <- function (h){ for(i in 1:(length(h$counts)-1)){ if(h$counts[i]!=0 || h$counts[i+1]!=0){ counts2[j]<-h$counts[i] - breaks2[j+1]<-h$breaks[i+1]; + breaks2[j+1]<-h$breaks[i+1] j<-j+1 } } diff --git a/docs/source/tuto_s4u/draw_gantt.R b/docs/source/tuto_s4u/draw_gantt.R index f3ab44d450..3e9afb7157 100644 --- a/docs/source/tuto_s4u/draw_gantt.R +++ b/docs/source/tuto_s4u/draw_gantt.R @@ -5,13 +5,13 @@ library(pajengr) # Load and relabel the data df = pajeng_read(args[1]) -names(df$state) = c("Type", "Actor", "Container", "Start", "End", "Duration", "Level", "State"); +names(df$state) = c("Type", "Actor", "Container", "Start", "End", "Duration", "Level", "State") # Actually draw the graph -p = ggplot(df$state) + geom_segment(aes(x=Start, xend=End, y=Actor, yend=Actor,color=State), size=5); +p = ggplot(df$state) + geom_segment(aes(x=Start, xend=End, y=Actor, yend=Actor,color=State), size=5) # Cosmetics to compact the resulting graph -p.height <- length(unique(df$state$Actor)) * 0.05 + 2; +p.height <- length(unique(df$state$Actor)) * 0.05 + 2 pdf(height = p.height) # Produce the pdf file