install.packages("dplyr")
Installing package into ‘C:/Users/pursh/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/dplyr_1.0.10.zip '
Content type 'application/zip' length 1303648 bytes (1.2 MB)
downloaded 1.2 MB
package ‘dplyr’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\pursh\AppData\Local\Temp\RtmpQPLkJB\downloaded_packages
it does not show me done(dplyr)
so is that ok?
It appears so, do you have any problem loading the package with library(dplyr)
?
Yes I do have. It just does not say done installed
could it be because I have not initially downloaded something properly.
It is not mandatory that you get that message, it usually appears when you install from source instead of from a precompiled binary.
Purvi_Shah:
Yes I do have.
What is the actual problem you have? What error message do you get? Ideally try to provide a proper reproducible example illustrating your issue.
A minimal reproducible example consists of the following items:
A minimal dataset, necessary to reproduce the issue
The minimal runnable code necessary to reproduce the issue, which can be run
on the given dataset, and including the necessary information on the used packages.
Let's quickly go over each one of these with examples:
Minimal Dataset (Sample Data)
You need to provide a data frame that is small enough to be (reasonably) pasted on a post, but big enough to reproduce your issue.
Let's say, as an example, that you are working with the iris data frame
head(iris)
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#> 1 5.1 3.5 1.4 0.…
ok....I am following a course and putting in the codes as I am following the instructor. unfortunately I am unable to go ahead as there are some errors and I am not sure how to correct them.
filtered_tg <- filter(ToothGrowth, dose==0.5)
view(filtered_tg)
Error is as follows:
filtered_tg <-filter(ToothGrowth,dose==0.5)
Error in filter(ToothGrowth, dose == 0.5) : object 'dose' not found
Error in view(filtered_tg) : could not find function "view"
Ok, nothing of this is related to the installation of the package.
You are getting this error message because you haven't loaded dplyr
in your current R session. Keep in mind that packages only need to be installed once (with install.packages()
) but they need to be loaded on each R session you want to use them (with library()
).
You are getting this error message because R is case sensitive and the command is View()
(with a capital "V").
So the code should be
library(dplyr)
filtered_tg <- filter(ToothGrowth, dose == 0.5)
View(filtered_tg)
Hi
Thank you so much for all your help. Its been brilliant and its all ok now. All the codes are working.
system
Closed
December 23, 2022, 9:45pm
9
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.