Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slam package updated --> PubMedWordcloud cannot be installed without it #2

Open
cnobles opened this issue Aug 22, 2016 · 10 comments
Open

Comments

@cnobles
Copy link
Contributor

cnobles commented Aug 22, 2016

The package was updated to version 0.1-38 on Aug 18th 2016. This is a dependency for the packages 'tm' and 'wordcloud', which are in turn dependancies for PubMedWordcloud.

We can enforce package version by installing from the CRAN archive rather than default.

Lines below can be inserted into the setupINSPIIRED.R script.

slam_url <- "http://cran.r-project.org/src/contrib/Archive/slam/slam_0.1-37.tar.gz"
install.packages(slam_url, repos = NULL, type = "source")
@chasberry
Copy link

Why hard code the version? I'd do this:

slam_url <- "http://cran.r-project.org"
install.packages("slam", repos = slam_url, type = "source")

@chasberry
Copy link

Or to say this another way, I'd address the dependency issues rather than work around them.

@cnobles
Copy link
Contributor Author

cnobles commented Aug 23, 2016

If we started using the latest version of R (3.3.1), many of the other dependent packages would not work just yet as they have not been updated. For INSPIIRED, we've elected to use R 3.2.2 for which every packaged is compatible. It seems that the only way to be certain the program will be able to run as we currently have it designed would be through version control. In the long run, we may need to version control all the dependancies, and update them only upon another release of INSPIIRED (v2.0).

Do you have any recommendations or is this a good course of action?

@chasberry
Copy link

Not following this:

many of the other dependent packages would not work just yet as they have not been updated

I see them on CRAN where it appears that they pass R CMD check. So they look up to date to me and I'd just use them.

If you truly cannot update, then I'd ask see if R-devel has a best-practices given the particulars. And then if there is nothing, I'd post a query.

@cnobles
Copy link
Contributor Author

cnobles commented Aug 24, 2016

I tested transitioning to R 3.3.1 yesterday with our installation management software (conda), but ran into some issues that I'll try to resolve. I'll look into making that transition more and see if version control is really necessary. Thanks for the suggestion.

@navpreet2130
Copy link

i am using R 3.2.2 i tried to iinstall slam package with code
slam_url <- "http://cran.r-project.org"
install.packages("slam", repos = slam_url, type = "source")
bt it gives error: installation of package ‘C:/Users/User/AppData/Local/Temp/RtmpyyeUNs/downloaded_packages/slam_0.1-37.tar.gz’ had non-zero exit status
please help

@cnobles
Copy link
Contributor Author

cnobles commented Sep 29, 2016

Try pasting the two lines of code at the beginning of this post into line 20 of INSPIIRED/bin/setupINSPIIRED.R before running the INSPIIRED setup. That should install the package first thing.

@navpreet2130
Copy link

Hello sir. I have installed all the packages . I am doing sentiment
analysis on Twitter data and want as output the following graph as shown in
the picture attached. Please help me to do this .
On 29-Sep-2016 11:17 pm, "Chris Nobles" [email protected] wrote:

Try pasting the two lines of code at the beginning of this post into line
20 of INSPIIRED/bin/setupINSPIIRED.R before running the INSPIIRED setup.
That should install the package first thing.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVSRRZKXJzy3AtOAncIDcOelwoGuAVjbks5qu_nKgaJpZM4Jp20l
.

@helixscript
Copy link
Collaborator

I would recommend installing slam through the conda environment.

From inside conda environment:
conda install r-slam

On Thu, Sep 29, 2016 at 1:51 PM, navpreet2130 [email protected]
wrote:

Hello sir. I have installed all the packages . I am doing sentiment
analysis on Twitter data and want as output the following graph as shown in
the picture attached. Please help me to do this .
On 29-Sep-2016 11:17 pm, "Chris Nobles" [email protected] wrote:

Try pasting the two lines of code at the beginning of this post into line
20 of INSPIIRED/bin/setupINSPIIRED.R before running the INSPIIRED setup.
That should install the package first thing.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)
,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AVSRRZKXJzy3AtOAncIDcOelwoGuAVjbks5qu_nKgaJpZM4Jp20l>
.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHSJQ6FirVTxO6bN9J4dvO4ILy6ZbM6Iks5qu_q-gaJpZM4Jp20l
.

John K. Everett
http://www.linkedin.com/in/JohnEverettPhD

@cnobles
Copy link
Contributor Author

cnobles commented Sep 29, 2016

Likewise, that should work too. I believe it was available the last time we checked. Sry, no picture was attached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants