I used LT Spice in the past and tried to switch to the KiCAD spice implementation. But I currently struggle to implement a variable resistor that would work that way in LTSpice. I tried two methods:
R=100+10*time fails because it says this statement is invalod
You may have a look at the spice netlist sent to ngspice by Eeschema-->File-->Export-->Netlist...-->Spice-->Export Netlist
You will see that there is no node ‘res’, but a node ‘/res’. So probably v(/res) would be o.k.
The B source does not have parameters dc, ampl, f (see ngspice manual chapter 5.1)
R=100+10*time has to use ', so R='100+10*time' (see ngspice manual chapter 3.3.4). time is available only for transient simulation.