I think we should use

```
PLOTLY_DIR <- file.path(path.expand("~"), ".plotly")
```

for better support of windows machines. Reference: https://stat.ethz.ch/pipermail/r-help/2007-March/128217.html