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

tmap (dev) version 3.3-3: Error: $ operator is invalid for atomic vectors #615

Closed
eyayaw opened this issue Dec 15, 2021 · 2 comments
Closed

Comments

@eyayaw
Copy link

eyayaw commented Dec 15, 2021

library(tmap) 
Warning message:
multiple methods tables found forapproxNA# taken from terra ?project
a <- rast(ncols=40, nrows=40, xmin=-110, xmax=-90, ymin=40, ymax=60, crs="+proj=longlat +datum=WGS84")
values(a) <- 1:ncell(a)
tm_shape(a) + tm_raster()
Error: $ operator is invalid for atomic vectors
  • Note: The above code works with the cran versions of terra ("1.4-22") raster ("3.5-9").

sessionInfo

tmap dev 3.3-3, Date: 2021-08-20
terra dev 1.5-2
raster dev 3.5-10

searchpaths()
[1] ".GlobalEnv"
[2] "/Library/Frameworks/R.framework/Versions/4.1/Resources/library/terra"
[3] "/Library/Frameworks/R.framework/Versions/4.1/Resources/library/sf"
[4] "/Library/Frameworks/R.framework/Versions/4.1/Resources/library/tmap"
[5] "tools:rstudio"
[6] "/Library/Frameworks/R.framework/Versions/4.1/Resources/library/stats"
[7] "/Library/Frameworks/R.framework/Versions/4.1/Resources/library/graphics"
[8] "/Library/Frameworks/R.framework/Versions/4.1/Resources/library/grDevices"
[9] "/Library/Frameworks/R.framework/Versions/4.1/Resources/library/utils"
[10] "/Library/Frameworks/R.framework/Versions/4.1/Resources/library/datasets"
[11] "/Library/Frameworks/R.framework/Versions/4.1/Resources/library/methods"
[12] "Autoloads"
[13] "/Library/Frameworks/R.framework/Resources/library/base"

@Nowosad
Copy link
Member

Nowosad commented Dec 17, 2021

Hi @eyayaw -- this issue does not exist for the current developement stars version - r-spatial/stars#484 (comment).

Also see a related discussion at geocompx/geocompr#691 (comment).

@Nowosad Nowosad closed this as completed Dec 17, 2021
@eyayaw
Copy link
Author

eyayaw commented Dec 18, 2021

Great. Thank you.

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