At approximately 2100 Pacific time, a Cessna R182 struck terrain following an aborted takeoff at Crest Airpark. The flight instructor, pilot and passenger were not injured. The pilot was undergoing transition training to fly complex airplanes. During takeoff after the first touch and go, the flaps failed to retract and the airplane would not climb. The flight instructor attempted to land on the remaining runway, but the landing gear did not extend completely. The airplane had a documented history of the flaps not cycling correctly, including on the flight prior to the accident flight. The flaps cycled normally during an initial inspection after the airplane was recovered.