expand_r_libs does nothing if version is NULL
Clean up switch statement in site_*_dir
Remove switch statement in win_path_env
make FUN.VALUE more explicit
Add space after if's
Improve user_cache_dir example
Fix bug in appdir