Infantry does flank if it ends up in the flanking position, but the troops deployment doesn't seem to take into consideration that the infantry can flank.
An excuse could be... battles are chaotic?... It could be a neat little addition to have maneuver factor into unit placement and "moving" units during battles perhaps?...
I don't think there is any penalty for artillery on the front row. The only downside is that it is expensive and since it will take damage on the front row, the reinforcement will be expensive too. Until MIL 16 artillery and infantry are fairly close in their efficiency, bit infantry costs 3 times less.
Front row Art deal full damage, back row 50%. So in the front row at 100% they deal INSANE damage in the first fire phase. Its just their defense pips arnt the best (I think like half off the top of my head compared to Inf) so they will take heavy casualties, so it falls of rather quickly due to non full strength units. That and Art giving defense pip bonuses to the units in front of them.
There is a misconception that a) early artillery sucks b) artillery take double damage in front row... Personally I have tested it in many playthroughs, the last time was just where I had the possibilities to save-scum and do a number of tests and comparisons with roughly same circumstances (can´t really control die rolls) and where army didn´t get reinforced... They did a shitton of damage in fire phase as Misiceman said... However they in turn can´t defend well in shock where they took most of the damage... But by then, my armies no longer outnumbered them and fought with less effective regiments.
It´s the same with ppl saying cavalry are worthless later on... They are quite effective later on due to their flanking and shock damage... They are just not as beneficial to their costs as in I rarely go up to 8 cav in larger armies... Had the opportunity to stream a game as observer with players who had this misconception... A tunis player who bragged about the tactic to use no cav to beat all, where he was losing until he bought a few cav (he didn´t have much cash by then, but even the small number changed outcome)... And a giant war with Austria Ottoman which were on par in military modifiers... One had no cav and he got wrecked with same sized armies until he began taking in cav...
I've always operated under the assumption that the Wiki is correct when it states that artillery regiments receive double damage when in the front row. I vividly recall my full artillery stacks getting stackwiped when the AI caught me napping.
From my experience, information on wiki only weakly correlates with how the game works, but this case might be worth testing. It's a rare situation since putting artillery on the front row is too expensive (even if it doesn't take double damage); on couple of occasions where I've seen an artillery getting on the front row I haven't noticed it taking more damage than infantry, but that could have been due to other factors (such as unit in front of it being significantly damaged in the earlier rounds of combat).
I generally operate that the wiki (if update recently) will be accurate as to the intent of the design. They did do a push for updating it a while ago so a good amount should be accurate barring bugs.
It´s a neat reference... If you don´t know where to look for it in game files

mostly I use it to fresh up... Or to get an idea of where they are hiding them in game files... Just love it when you "lose" an argument because wiki tells you are wrong, despite game files saying something else :-D
Also I am not sure early game tactics matter compared to late game tactics (assuming same tactics) since they changed disc. I think i remember reading in a forum thread that the multiplier was changed to tactics of the attacker/ tactics of the defender, but looking at the wiki it still says discipline/tactics but the page hasn't seemed to have changed from 1.15, however it does mention the disc effecting tactics. Clarification on that would also be nice, as that feels wrong from the way the game currently plays, but I could be wrong remembering that.
hehe... always goes by the assumption that discipline is damage and morale is battle length

which makes me more confused at the latest modifiers to infantry and shock :-D but at least I get the gist of what is going on... and where they work best