I can't use sf package

after installing the sf package I can't use it and there is a lot of messages that came with it:

install.packages("sf")
Installing package into ‘C:/Users/mx6ix/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
also installing the dependencies ‘proxy’, ‘cpp11’, ‘e1071’, ‘wk’, ‘classInt’, ‘DBI’, ‘magrittr’, ‘Rcpp’, ‘s2’, ‘units’

trying URL '
Content type 'application/zip' length 245432 bytes (239 KB)
downloaded 239 KB

trying URL
Content type 'application/zip' length 229169 bytes (223 KB)
downloaded 223 KB

trying URL
Content type 'application/zip' length 1023159 bytes (999 KB)
downloaded 999 KB

trying URL
Content type 'application/zip' length 1116738 bytes (1.1 MB)
downloaded 1.1 MB

trying URL ''
Content type 'application/zip' length 466396 bytes (455 KB)
downloaded 455 KB

trying URL
Content type 'application/zip' length 688854 bytes (672 KB)
downloaded 672 KB

trying URL
Content type 'application/zip' length 236059 bytes (230 KB)
downloaded 230 KB

trying URL
Content type 'application/zip' length 3263026 bytes (3.1 MB)
downloaded 3.1 MB

trying URL h 42167609 bytes (40.2 MB)
downloaded 40.2 MB

package ‘proxy’ successfully unpacked and MD5 sums checked
package ‘cpp11’ successfully unpacked and MD5 sums checked
package ‘e1071’ successfully unpacked and MD5 sums checked
package ‘wk’ successfully unpacked and MD5 sums checked
package ‘classInt’ successfully unpacked and MD5 sums checked
package ‘DBI’ successfully unpacked and MD5 sums checked
package ‘magrittr’ successfully unpacked and MD5 sums checked
package ‘Rcpp’ successfully unpacked and MD5 sums checked
package ‘s2’ successfully unpacked and MD5 sums checked
package ‘units’ successfully unpacked and MD5 sums checked
package ‘sf’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\mx6ix\AppData\Local\Temp\RtmpYVlYtT\downloaded_packages

You are showing normal installation messages, and apparently you have succesfylly installed sf. Can you please explain what your actual problem is? What makes you say that you can't use the sf package? Do you get any error messages when you try to load the package with library(sf)?

Thanks for your reply but after calling the library library(sf), and trying to use
P <- st_point(c(2,5)) it came this error > P <- st_point(c(2,5))
Error in st_point(c(2, 5)) : could not find function "st_point"

It seems like the library isn't loaded, Do you get any error messages when you try to load the package with library(sf)?

Do you get the same error if you use sf::st_point(c(2, 5)) explicitly?

I get a lot of messages when I try to load the package and at the end just appears the message: The downloaded binary packages are in
C:\Users\mx6ix\AppData\Local\Temp\RtmpYVlYtT\downloaded_packages

Your are confusing "loading" with "installing" the message you mention is from installing the package, not loading.

What about specifying the package with sf::st_point(c(2, 5))?

The install.packages( ) function is used to download packages from the internet and install them in the User Library on your computer, while library( ) is used to load a package from your User Library so you can access its functions and data sets. Think of "install.package( )" as the library purchasing a book and putting it on the shelf, and "library( )" as checking the book out from the library so you can read it.

[quote="Mixfull, post:5, topic:114080"]
RtmpYVlYtT
[/qO

Ohhh yeah! I think you are right thank you for your help. I am not really advanced in the topic.

Ohhh yeah! I think you are right thank you for your help. I am not really advanced in the topic. Now is working.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.