Watts-College / cpp-529-fall-2022

https://watts-college.github.io/cpp-529-fall-2022/
0 stars 1 forks source link

Lab 04: Knitting Error #12

Open Sanaz-27 opened 1 year ago

Sanaz-27 commented 1 year ago

Hi Dr. @AntJam-Howell,

I keep getting this error when knitting my RMD, although when I run the chunks one by one, no issues are found!

Error in file(file, ifelse(append, "a", "w")) : cannot open the connection Calls: <Anonymous> ... <Anonymous> -> png -> .handleSimpleError -> h -> cat -> file In addition: There were 13 warnings (use warnings() to see them) Execution halted

I googled it but nothing worked from the suggestions, that all have to do with knitr::opts_knit$set or knitr::opts_chunk$set!

Can you please Help?

Thanks, Sana'

AntJam-Howell commented 1 year ago

@Sanaz-27 can you attach or email me your rmd file for me to take a look?

courtney-haasch commented 1 year ago

@AntJam-Howell Hi! I am having a knitting error as well.

Error in cartogram_dorling(x = msp.sp, weight = "pop.w", k = 0.05) : could not find function "cartogram_dorling" Calls: ... withVisible -> eval_with_user_handlers -> eval -> eval

I get this error for the following code:

msp.sp <- spTransform( msp.sp, CRS("+init=epsg:3395")) msp.sp <- msp.sp[ msp.sp$POP != 0 & (! is.na( msp.sp$POP )) , ]

msp.sp$pop.w <- msp.sp$POP / 9000 msp_dorling <- cartogram_dorling( x=msp.sp, weight= "pop.w", k=0.05 ) plot( msp_dorling )

Can you please help me determine why this error is happening.

Thank you,

Courtney

Sanaz-27 commented 1 year ago

@Sanaz-27 can you attach or email me your rmd file for me to take a look?

Hi Dr. @AntJam-Howell. I send the file by email. Thank you, Sana