Vegas is easily doable in an RV with a few RV parks right on the strip. There is a KOA at Circus Circus that a lot of people don't like, but I like it because it's right on the strip and not a far walk from the monorail station.
In SF there are a couple of choices that are probably real expensive. There is a RV park right on the coast in Pacifica with easy access to SF. There is also an RV park at Candlestick Park but I've never stayed there. With Candlestick now closed I don't know if the RV park stayed open or not. There is also an RV park right next to the Ferry Landing in Larkspur. It's walking distance to the ferry and you can take the ferry right into SF.