tylermorganwall / rayshader

R Package for 2D and 3D mapping and data visualization
https://www.rayshader.com/
2.05k stars 211 forks source link

could not find function "render_highquality" on Windows OS #85

Closed bayoishola20 closed 4 years ago

bayoishola20 commented 4 years ago
Error in render_highquality(lightdirection = 0, lightaltitude = 30, clamp_value = 10,  : 
  could not find function "render_highquality"
tylermorganwall commented 4 years ago

Uninstall and reinstall the package from github:

remove.packages("rayshader")
remotes::install_github("tylermorganwall/rayshader")
remotes::install_github("tylermorganwall/rayrender")
bayoishola20 commented 4 years ago

Thank you! That resolved the missing "render_highquality" function but another pops when ran.

Error in diffuse() : could not find function "diffuse"

EDITED: Open a new issue instead?

tylermorganwall commented 4 years ago

No need, just uninstall rayrender and reinstall the github version:

remove.packages("rayrender")
remotes::install_github("tylermorganwall/rayrender")

Also restart R

bayoishola20 commented 4 years ago

That has now been resolved but yet another shows up.

Error in .Call(`_rayrender_render_scene_rcpp`, nx, ny, ns, fov, ambient_light,  : 
  Incorrect number of arguments (63), expecting 62 for '_rayrender_render_scene_rcpp'

Code used:

render_highquality(lightdirection = 0, lightaltitude  = 30, clamp_value = 10, 
                   samples=200, clear=TRUE)
tylermorganwall commented 4 years ago

The issue is the package isn't fully uninstalling--try uninstalling rayrender, restarting R, and installing it from github again. If that doesn't work, you'll need to go into the folder containing your packages (found by typing .libPaths()) and delete the rayrender folder.

bayoishola20 commented 4 years ago

Thank you! This does resolve the issue(s).

PS: Just incase someone has same issue, removing rayshader didn't happen until I navigated to C:\Users\{Your_Computer_Name}\Documents\R\win-library\3.6 and manually deleted the folder 00LOCK-rayshader

tylermorganwall commented 4 years ago

Great!