R environmental and population models for streams