Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to rename: object 'X02.relief.ascii' not found #1

Open
asifm opened this issue Jan 3, 2020 · 1 comment
Open

Fails to rename: object 'X02.relief.ascii' not found #1

asifm opened this issue Jan 3, 2020 · 1 comment

Comments

@asifm
Copy link

asifm commented Jan 3, 2020

Hi, I'm not sure if I'm missing something simple, but the index.Rmd file is failing at line 250–255. I'm running it within a freshly downloaded repo. R version is 3.5.3 (64-bit) but I'm on Windows, not Linux -- I don't know if that has anything to do with this error. Please find the traceback below as well.

Code that fails

# read in raster of relief
relief <- raster("input/02-relief-ascii.asc") %>%
  # hide relief outside of Switzerland by masking with country borders
  mask(country_geo) %>%
  as("SpatialPixelsDataFrame") %>%
  as.data.frame() %>%
  rename(value = `X02.relief.ascii`)

Traceback

Error in .f(.x[[i]], ...) : object 'X02.relief.ascii' not found
15. .f(.x[[i]], ...)
14. map(.x[sel], .f, ...)
13. map_if(quos, is_symbol, eval_tidy, data)
12. vars_rename_eval(quos, .vars)
11. tidyselect::vars_rename(names(.data), !!!quos(...))
10. rename.data.frame(., value = X02.relief.ascii)
9. rename(., value = X02.relief.ascii)
8. function_list[[k]](value)
7. withVisible(function_list[[k]](value))
6. freduce(value, `_function_list`)
5. `_fseq`(`_lhs`)
4. eval(quote(`_fseq`(`_lhs`)), env, env)
3. eval(quote(`_fseq`(`_lhs`)), env, env)
2. withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
1. raster("input/02-relief-ascii.asc") %>% mask(country_geo) %>% as("SpatialPixelsDataFrame") %>% as.data.frame() %>% rename(value = X02.relief.ascii)
@asifm asifm changed the title Error in .f(.x[[i]], ...) : object 'X02.relief.ascii' not found Fails to read raster of relief: object 'X02.relief.ascii' not found Jan 3, 2020
@asifm asifm changed the title Fails to read raster of relief: object 'X02.relief.ascii' not found Fails to rename: object 'X02.relief.ascii' not found Jan 3, 2020
@Chyvan
Copy link

Chyvan commented Mar 6, 2020

Hi, I had the same issue. Problem was solved for me when I made sure, that the package plyr is not loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants