Skip to content

Bad filename response with directories #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
noqqe opened this issue May 12, 2014 · 1 comment
Closed

Bad filename response with directories #26

noqqe opened this issue May 12, 2014 · 1 comment

Comments

@noqqe
Copy link

noqqe commented May 12, 2014

When you set a directory within the filename like directory/file the API returns the directory two times. directorydirectory/file

When you use this as a simple example:

library(plotly)

py <- plotly(username="noqqe", key="MYKEY")

x <- rnorm(500)
data = list(x = x,
            type = 'histogramx')
l <- list(autosize = FALSE,
          width = 600,
          height = 400,
          showlegend = FALSE)

response <- py$plotly(data, kwargs = list(layout = l, filename="Mountainbike/TEST"))

filename <- response$filename
print(filename)

You recieve the following

$ Rscript lolo.R 
Loading required package: RCurl
Loading required package: methods
Loading required package: bitops
Loading required package: RJSONIO
Loading required package: ggplot2
[1] "MountainbikeMountainbike/TEST"
@mkcor
Copy link
Contributor

mkcor commented Jan 20, 2015

Good catch, thanks @noqqe !

@mkcor mkcor closed this as completed Jan 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants