petteriTeikari / R-PLR

Once separate repos combined to one making it easier in the end
1 stars 0 forks source link

unknown graphic device #12

Closed ray-najjar closed 5 years ago

ray-najjar commented 5 years ago
=  C:/Users/User/Desktop/RPLR/TEST_OUT/PLR_feat 
        -> in other we assume now that you have not yet processed any of the input files
         EXPLANATION #2: Why we are checking from "Reconstructed path"? As that is the end point of this script

  .. found 3 unprocessed input files
 Analyzing file =  PLR2076_reconstruction.csv  
  Traditional time domain features: BLUE RED
    Fractal features
      Time-Frequency features
[1] "IMF 1 COMPLETE!"
[1] "IMF 2 COMPLETE!"
[1] "IMF 3 COMPLETE!"
[1] "IMF 4 COMPLETE!"
[1] "IMF 5 COMPLETE!"
[1] "IMF 6 COMPLETE!"
[1] "IMF 7 COMPLETE!"
[1] "IMF 8 COMPLETE!"
[1] "IMF 9 COMPLETE!"
Error: Unknown graphics device ''

when calling

# Finally compute the hand-crafted features here
  batch.PLR.analyze.reconstructions(data_path =  paths[['data_in']][['features']], 
                                     data_path_out = paths[['data_out']][['features']],
                                     RPLR_analysis_path = paths[['analysis']],
                                     parameters, RPLR_paths, masterExcel,
                                     process_only_unprocessed = TRUE,
                                     path_check_for_done = paths[['data_out']][['features']], 
                                     no_of_cores_to_use = detectCores(),
                                     pupil_col = 'pupil')

  }
petteriTeikari commented 5 years ago

Error from

9.
stop("Unknown graphics device '", device, "'", call. = FALSE) 
8.
plot_dev(device, filename, dpi = dpi) 
7.
ggsave(path_out, ml, , width = 42.67, height = 24, units = "cm") at plot_PLRwithFeatures.R#308
6.
plot_bin_features(data_frame_norm, bins, features_blue, data_bins_blue, 
    bins_combined_blue, feats_combined_blue, normalize_on, normalize_method, 
    "blue", normalize_indiv_colors, baseline_period, just_filename, 
    data_images_path_out) at plot_PLRwithFeatures.R#89

Reported there https://github.com/tidyverse/ggplot2/issues/2276

The png export weirdly used to work I think in Ubuntu, but now fixed

Skipping now the .png export on Windows at least :(