You asked
Should I switch from the pentax k r to mirrorless?
Not necessarily. The guide's case for mirrorless is strongest for a first camera. The first camera guide says mirrorless cameras show the exposure before you take the picture, their autofocus finds and follows eyes, and every major brand is putting new lenses into mirrorless mounts. Those are real gains over a 2010 DSLR like the Pentax K-r, which has a 12.4-megapixel APS-C sensor.
Switching also means leaving the K-mount behind for new bodies. The K-r's catalogue page lists a wide range of Pentax lenses, from fish-eye to 560mm, and your existing lenses fit the K-r directly. The lenses guide notes that mirrorless mounts are shallow, so old manual-focus lenses adapt easily and cheaply. That softens the move if you want to keep some of them.
The guide's view is that the money goes further in lenses than in bodies. If the K-r already does what you need, keep shooting and spend on a lens you lack. Switch when the camera itself holds you back, such as autofocus that misses moving subjects or a need to shoot in dim light with a fast lens you can't use well on your current body. The guide doesn't pick a specific mirrorless body here, so compare current models yourself before you buy.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.