• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..08-Nov-2021-

README.mdH A D08-Nov-20211.3 KiB3419

README.md

1# Adding data source icons
2
3### File name matching
4
5Data source icons are displayed in the connection dialog when the icon file name matches one or more of the references below. Name matching is done with case insensitive exact matching (minus the file extension). For example, references to `SQLServer` will match `sqlserver.png`. However, references to `microsoftsqlserver` will *not* match `sqlserver.png`.
6
7There are five ways to match data source icons. For more info, see [Troubleshooting Connections](https://support.rstudio.com/hc/en-us/articles/115011264307).
8
91.  The driver name in `odbcinst.ini`
10
112.  The DSN name in `odbc.ini`
12
133.  The DSN name in `.odbc.ini`
14
154.  The snippet name on the system under `/etc/rstudio/connections/<snippet name>.R`
16
175.  The snippet name in an R package under `inst/rstudio/connections/<snippet name>.R` provided the R package has a valid [connections contract](https://rstudio.github.io/rstudio-extensions/rstudio-connections.html)
18
19### Icon size and resolution
20
21Each data source should have a large and small `png` icon.
22
23#### Small ![](sqlite.png)
24
25-   Name: `<data source>.png`
26-   Size: 32px x 32px
27-   Resolution: 72 px/in
28
29#### Large ![](sqlitelarge.png)
30
31-   Name: `<data source>large.png`
32-   Size: 64px x 64px
33-   Resolution: 72 px/in
34