WayneGitShell / GWSDAT

GroundWater Spatiotemporal Data Analysis Tool (GWSDAT) R-Shiny implementation.
https://stats-glasgow.shinyapps.io/GWSDAT
30 stars 7 forks source link

ERROR: 'ph_with_img' is defunct. #226

Closed WayneGitShell closed 4 years ago

WayneGitShell commented 4 years ago

ERROR: 'ph_with_img' is defunct in officer package.

Use 'ph_with' instead but make sure it's backwards compatible...

Relevant code is in ppt.R.

WayneGitShell commented 4 years ago

ppt_pres <- officer::ph_with_img(ppt_pres, src = imgfile, height = height / 90 0.7, width = width / 90 0.7 )

ppt_pres <- officer::ph_with(x=ppt_pres,external_img(src = imgfile, width = width / 90 0.7, height = height / 90 0.7),location = ph_location_left(),use_loc_size = FALSE)

WayneGitShell commented 4 years ago

Bug fixed - but could do with further refinement on image sizing in PowerPoint...