Open CynthiaLteif opened 1 year ago
Hi @CynthiaLteif, could you point me to the place that you see the sentence that indicates a video for lab 3? I dont see any mention of video in the course schedule or the lab instructions that mention the need to watch a video. Thank you.
It looks like you will need to manually download the XML package. Best,
Yes sure. clusterintro2 lecture video (second lecture video), minute 13:55
Noted, thanks. @AntJam-Howell
@CynthiaLteif oh got it, nice catch from the video. Actually, the 3rd video was dropped upon new iteration of the course, so nothing else for you to watch. Thanks!
I'm still facing the issue with the tmap library even after manually installing the xml package. I think there is an issue with the downloading the package itself. (check photo below) Are we expected to use this rmd file for lab 04? @AntJam-Howell
That is frustrating... Can you try to open a new .R file and enter in option 1 code below. And if that doesn't work execute the codes for option 2.
Option 1
install.packages("tmap")
library("tmap")
Option 2
install.packages("devtools")
install.packages("remotes")
library(devtools)
library(remotes)
install_github("r-tmap/tmaptools")
install_github("r-tmap/tmap")
library("tmap")
If that doesn't try:
install.packages("tmap", dependencies=FALSE)
Option #3 worked (install.packages("tmap", dependencies=FALSE))
Thanks!
So sorry to bother you with this but running the code worked fine, however, knitting caused an error:
@AntJam-Howell
And when I run all, I get this error for this part of the code @AntJam-Howell
Hi Cynthia, You should only install the trap package one time. Try removing that and replacing it with library(tmap)
On Tue, Nov 1, 2022 at 4:53 AM Cynthia @.***> wrote:
And when I run all, I get this error for this part of the code @AntJam-Howell https://urldefense.com/v3/__https://github.com/AntJam-Howell__;!!IKRxdwAv5BmarQ!fbVHNqMdgAKjRzO8y0I8S552BGLJJLshOnxH0_NdOrWbXwgpkwdyQR-L47761FINYq4blFSEOUppA3sj94yJgJImhkAV9w$ [image: image] https://urldefense.com/v3/__https://user-images.githubusercontent.com/97438499/199226870-c936b545-0d94-4c21-81c7-85a2ab13d98f.png__;!!IKRxdwAv5BmarQ!fbVHNqMdgAKjRzO8y0I8S552BGLJJLshOnxH0_NdOrWbXwgpkwdyQR-L47761FINYq4blFSEOUppA3sj94yJgJIhSsoosA$
— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/Watts-College/cpp-529-fall-2022/issues/9*issuecomment-1298404990__;Iw!!IKRxdwAv5BmarQ!fbVHNqMdgAKjRzO8y0I8S552BGLJJLshOnxH0_NdOrWbXwgpkwdyQR-L47761FINYq4blFSEOUppA3sj94yJgJKLiT7v0A$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AMK2Y733QDEXUJBTJROSFADWGEADZANCNFSM6AAAAAARQJYTWI__;!!IKRxdwAv5BmarQ!fbVHNqMdgAKjRzO8y0I8S552BGLJJLshOnxH0_NdOrWbXwgpkwdyQR-L47761FINYq4blFSEOUppA3sj94yJgJIyoziGPw$ . You are receiving this because you were mentioned.Message ID: @.***>
-- Please excuse brevity. Message composed on mobile device.
If I do that the same error message occurs. @AntJam-Howell
I am still have the same issue also. I signed up for the rstudio cloud so that tmap would work, but now it won't knit html files.
It's very odd. I haven't been able to make it work since Monday. @alinemaestas
@CynthiaLteif Try updating R and Rstudio. I run it on my mac and when I checked out the latest versions for both, R had a newer version from Oct and Rstudio had a newer version from Sept, I think. Either way, I updated both, installed the packages all over again and installing tmap actually worked this time. I kept getting an error for the Stars dependency and with the updated versions, it installed it right away. So it finally worked. Took about about a total of 4 hours to try to figure out what's wrong, but it took me only 5-10 minutes for the updates. 🤦🏻♀️
@CynthiaLteif @alinemaestas I went back and also had troubles knitting due to a problem with another package, not tmap. I updated everything and tried to install the package and got it to work again. Definitely frustrating working in a live coding exercise based on earlier versions of packages, and is a problem with open-sourced software like R. Hopefully, updating R, Rstudio and all libraries helps solve others problems as well. keep me posted.
I was working with an older version of R. Thanks for pointing it out! tmap finally worked. @alinemaestas @AntJam-Howell but I still can't knit. Fairly confident I did something wrong with the code this time. Here's the error message: Error in as.list.environment(environment()) : object 'bb' not found
Related to this code: tm1 <- tm_shape( sanf_dorling, bbox=bb ) + tm_polygons( col="cluster", palette="Accent" )
tm2 <- tm_shape( sanf_dorling, bbox=bb ) + tm_polygons( col="cluster2", palette="Accent" )
tm3 <- tm_shape( sanf_dorling, bbox=bb ) + tm_polygons( col="cluster3", palette="Accent" )
tmap_arrange( tm1, tm2, tm3 )
The bounding box is the equivalent of xlim and ylim arguments on plots. You’ve got to define one for your map using lat and lon limits.
# user-defined bounding box to move slocer to subjects
bb <- st_bbox(
c( xmin = -10451823, xmax = -10324525,
ymax = 5639769, ymin = 5491665 ),
crs = st_crs("+init=epsg:3395"))
Thank you! @lecy
Should we expect to watch a video for lab 3? The second lecture video mentions that there is one but can't seem to find it. @AntJam-Howell
I'm also receiving this error while trying to load the tmap library which is causing an issue.