Skip to content

Bad filename response with directories #26

@noqqe

Description

@noqqe

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions