How to load the 'stringr' package in R? - r

I am using the "Mining Twitter for Airline Sentiment" tutorial to learn R. (tutorial at http://www.inside-r.org/howto/mining-twitter-airline-consumer-sentiment.)
The parsing algorithm requires loading the external "stringr" library. The R gui terminal consistently says it cannot find the library, even though multiple references exist online.
This is my first experience with an R tutorial. Any suggestions?
Thanks,
#brianpiercy

install.packages("stringr", repos='http://cran.us.r-project.org')
library("stringr")

DWin was right, learn more about "R Package" here.
You may try CloudStat: Twitter analysis.
Summary for newbie:
Go to stringr | Cran-R download the source file. Through your R Gui:
Packages > Install Package(s) from local zip file
Then, Load the library
library(stringr)
Hope it help.

Related

Difficulty installing a package in R linux, dalton_rqi

Downloaded package from below URL.
Attempted to install using below command; response shown.
library(dalton.rqi,lib.loc='/home/X/Desktop/')
Error: package ‘dalton.rqi’ was built before R 3.0.0: please re-install it
https://my.clevelandclinic.org/departments/anesthesiology/depts/outcomes-research/risk-quantification
It appears this is a compiled package that maybe I don't have the source for? Is there a way to force install of the package? I'm unable to install using Rstudio GUI in its current form as a zip. Tried repackaging to tar.gz has Rstudio was looking for and also had a non-zero exit status error.
Any ideas?
I'm afraid this can't be achieved directly. The error message says it well: to use a package in R it needs to be built on an R version matching yours.
I can suggest two ways to move forward:
Contact the authors, ask for the R sources (it is somewhat surprising they did not make them available in the first place), and build the package yourself.
Downgrade your R version as far back as needed to match the one this pre-built package used.

Can anyone help me with the R packages EcoSimR and bipartite?

I'm trying to use these packages to niche analysis but both seems to be removed from CRAN and packages which should replace them are not working. There is a new source for these packages or any way to carry out this analysis using another package?
Thank you!
Here you can download the archived file:
https://cran.r-project.org/src/contrib/Archive/EcoSimR/
Save the EcoSimR_0.1.0.tar to your folder.
Got to Packages in RStudio and press install
Install from archive

"GraphClusterAnalysis" package in R

Please, how can I get "GraphClusterAnalysis" package installed? I am trying to use the "Highly connected sub graphs" (HCS) clustering algorithm for my data. I have tried to use install.packages() for the installation but I keep getting: package ‘GraphClusterAnalysis’ is not available (for R version 3.0.3).
I was able to use a method called "highlyConnSG()" for the HCS clustering algorithm which I retrieved after installing "RGBL" and "graph" packages from source "https://biconductor.org/bioLite.R". So to install those packages, type in the R environment command line:
source("https://biconductor.org/biocLite.R")
biocLite("RBGL")
biocLite("graph")
As far as I can see, this is a library, written by the authors of the book ( https://www.csc2.ncsu.edu/faculty/nfsamato/practical-graph-mining-with-R/PracticalGraphMiningWithR.html ).
Also on this page is provided the link to the archive with this library itself (here is the link: https://www.csc2.ncsu.edu/faculty/nfsamato/practical-graph-mining-with-R/R-code/GraphClusterAnalysis.zip ).
So you can load this library and after that you can try to install the library from source. Here is the stackoverflow question about how to do it:
How do I install an R package from source?
Nevertheless, as for me I wasn't successful in installing it from source.

Is RDCOMClient still available?

I have spent the past several days trying to install RDCOMClient in order to integrate R output in MS Word using R2wd
Thanks to SO, I was finally able to wrestle devtools and other required packages into shape (man, that was way more difficult than it should have been!) but I have not been able to install RDCOMClient
The closest I have come is downloading RDCOMClient_0.93-0.zip and then receiving the error message
"Error: package ‘RDCOMClient’ was built before R 3.0.0: please
re-install it"
I also received the message
"package ‘RDCOMClient’ is not available (for R version 3.4.0)"
at one point.
I have tried the omegahat site as well as github and CRAN with no luck.
I am beginning to think the package is no longer available (I wish I had known that days ago!) but still wonder if I am missing something.
If the package is no longer available for version 3.4.0, can you suggest another package with similar functionality? I am looking to write analyses in MS Word and then embed tables, charts and other output from R.
Thanks!
Yes it is. You need to install Rtools first.
Then you can install RDCOMClient via:
remotes::install_github("omegahat/RDCOMClient")

Error while loading bquant package in r

I installed BQuant package in my windows system.When I loaded the package it showed the following error Error: package ‘BQuant’ is not installed for 'arch=i386' . Can anyone please sort it out.If not is there any other packages for NMR analysis in R.
Since according to your recent other question you are only interested in a good peak detection algorithm, you could get the code of the relevant functions directly from the package source (look in folder R inside the zip).

Resources