In macOS my .Rmd files are set to open with RStudio but display the wrong icon

How can I correct my .Rmd file icons? All are assigned Open with: RStudio: (default) but annoyingly they all have a green cylinder database type icon:


not the expected purple circle Rmd icon:

Get info shows that they are assigned a Kind: R Data File and not the expected Kind: R Markdown File.
macOS Mojave and RStudio 1.2.5033

UPDATE AND SOLUTION
Sorry, this is not an RStudio problem... RStudio has the correct info in the Info.plist file but searching the web suggested the LaunchServices database was corrupted. This was fixed by running the following from the terminal:

/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/LaunchServices.framework/Versions/Current/Support/lsregister -kill -r -domain local -domain system -domain user

followed by:

killall Finder

same problem please help? tubemate mobdro

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.