Skip to content

error in cache directory/file #6

Answered by h-a-graham
sgsalmo asked this question in Q&A
Discussion options

You must be logged in to vote

Here is the function with an example of how to specify and create the full file path:

#define full directory path
my_cache <-  '/home/sgsalmo/rayvistaproject/cache'

#check if directory exists - if not then this creates a new directory
if (!file.exists(my_cache)){
    dir.create(my_cache)
}

plot_mountain <- function(.coord, .name, .filt){
  next3d()
  mountain <- plot_3d_vista(lat=.coord[1], long=.coord[2], radius = 7500,
                            zscale=3, elevation_detail = 14, overlay_detail= 14,
                            outlier_filter = .filt ,zoom=0.8,
                            theta=sample(-175:-1, 1), windowsize =c(800,1200),
                            phi=15, solid=F, cac…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sgsalmo
Comment options

@h-a-graham
Comment options

Answer selected by h-a-graham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants