Depreciation renting personal home for a few months

Planning pros and cons of renting and depreciation.   Can I skip claiming depreciation if I rent my home for a few months then move back in?  How will depreciation impact my taxes if I  sell years from now?