none
Displaying images from published web service RRS feed

  • Question

  • If certain plots are within the code of the R code to be published. How can one retrieve them or see them from the published web service?

    I can see the file names with in the arguments of the web service that has been retrieved in the "changedFiles" argument but cannot plot them or see them. i get to only see the image file name.

    example

    api <- getService("exampleService","v0.0.1")

    The basic api  has 6 arguments namely success, errorMessage, outputParameters, ConsoleOutput, changedFiles, output

    api$changedFiles[[1]]

    [1] "unnamedplot001.png"

    How can i see or retrieve the "unnamedplot001.png" in the plots section of Rstudio?

    I am using Microsoft R Server 9.0.1. Here below is my R session?

    sessionInfo()
    R version 3.3.2 (2016-10-31)
    Platform: x86_64-w64-mingw32/x64 (64-bit)
    Running under: Windows Server >= 2012 x64 (build 9200)
    
    locale:
    [1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252    LC_MONETARY=German_Germany.1252
    [4] LC_NUMERIC=C                    LC_TIME=German_Germany.1252    
    
    attached base packages:
    [1] stats     graphics  grDevices utils     datasets  methods   base     
    
    other attached packages:
     [1] imager_0.31          magrittr_1.5         plyr_1.8.4           png_0.1-7            scales_0.4.0        
     [6] GGally_1.2.0         corrplot_0.77        mrsdeploy_1.0        survival_2.39-5      ggvis_0.4.3         
    [11] dplyr_0.5.0          tidyr_0.6.0          ggplot2_2.1.0        RevoUtilsMath_10.0.0 RevoUtils_10.0.2    
    [16] RevoMods_10.0.0      RevoScaleR_9.0.1     lattice_0.20-34      rpart_4.1-10        
    
    loaded via a namespace (and not attached):
     [1] Rcpp_0.12.7            iterators_1.0.8        tools_3.3.2            digest_0.6.10          jsonlite_1.1          
     [6] tibble_1.2             mrupdate_1.0.0         gtable_0.2.0           Matrix_1.2-7.1         foreach_1.4.3         
    [11] shiny_0.14.1           DBI_0.5-1              CompatibilityAPI_1.1.0 curl_2.2               bmp_0.2               
    [16] readbitmap_0.1-4       stringr_1.1.0          grid_3.3.2             reshape_0.8.6          R6_2.2.0              
    [21] jpeg_0.1-8             purrr_0.2.2            codetools_0.2-15       htmltools_0.3.5        splines_3.3.2         
    [26] assertthat_0.1         mime_0.5               colorspace_1.2-7       xtable_1.8-2           httpuv_1.3.3          
    [31] labeling_0.3           stringi_1.1.2          lazyeval_0.2.0         munsell_0.4.3         
    > 


    Wednesday, June 28, 2017 2:11 PM