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

R 3.6.0 installation issue #28

Open
arasselvi opened this issue May 15, 2019 · 5 comments
Open

R 3.6.0 installation issue #28

arasselvi opened this issue May 15, 2019 · 5 comments

Comments

@arasselvi
Copy link

arasselvi commented May 15, 2019

I am trying to install the package to my Windows 10 PC. None of the following works:

  • install.packages('tweetbotornot',dependencies = T)

  • devtools::install_github("mkearney/tweetbotornot",INSTALL_opts = c("--no-multiarch", "--no-test-load"))

  • devtools::install_github("mkearney/tweetbotornot")

If I try the first one, I get the following error:

Warning in install.packages :
  package ‘tweetbotornot’ is not available (for R version 3.5.3)

And the other devtools options give:

Error in i.p(...) : 
  (converted from warning) installation of package ‘C:..../tweetbotornot_0.1.0.tar.gz’ had non-zero exit status

@atish-ajgekar
Copy link

Hello,

I am getting the same error with R 3.6.0

tweetbotornot is not available in install.packages() so it must be installed via github only.

Installing via GitHub throws following error:

library(devtools)
install_github("mkearney/tweetbotornot")

Downloading GitHub repo mkearney/tweetbotornot@master

√ checking for file 'C:\Users\atish\AppData\Local\Temp\RtmpIt4I9t\remotesb7c1e875f6e\mkearney-tweetbotornot-4631a82/DESCRIPTION' (631ms)

  • preparing 'tweetbotornot':
    checking DESCRIPTION meta-information ...
    checking DESCRIPTION meta-information ...
    √ checking DESCRIPTION meta-information
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
  • looking to see if a 'data/datalist' file should be added
  • building 'tweetbotornot_0.1.0.tar.gz'

Installing package into ‘C:/Users/atish/AppData/Local/Programs/Python/Python37/Lib/site-packages/rpy2/R/win-library/3.6’
(as ‘lib’ is unspecified)

  • installing source package 'tweetbotornot' ...
    ** using staged installation
    ** R
    Error : (converted from warning) unable to re-encode 'features-exp.R' line 85
    ERROR: unable to collate and parse R files for package 'tweetbotornot'
  • removing 'C:/Users/atish/AppData/Local/Programs/Python/Python37/Lib/site-packages/rpy2/R/win-library/3.6/tweetbotornot'
    Error in i.p(...) :
    (converted from warning) installation of package ‘C:/Users/atish/AppData/Local/Temp/RtmpIt4I9t/fileb7c13ac4f4f/tweetbotornot_0.1.0.tar.gz’ had non-zero exit status

@hassannasir
Copy link

I am facing similar issues. Grateful for some support.

@Vbar1982
Copy link

  1. Create a Branch on your own GitHub account
  2. rewrite line 85 of features-exp.R see Fix unexpected end of input error while installing in Windows #26
  3. run devtools::install_github("YOURACCOUNT/tweetbotornot")

@Lalemadahali
Copy link

I followed all the same steps. and tried to change line 85 but github say there is no change to commit.
I tried to install from fork as well as from master in both cases I am getting this error.
Can any one help me to fix this error.

  • installing source package 'tweetbotornot' ...
    ** R
    Warning: unable to re-encode 'features-exp.R' line 85
    Error in parse(outFile) :
    C:/Users/lmadahali/AppData/Local/Temp/Rtmp4avsHg/devtools270c185f4517/mkearney-tweetbotornot-7109d40/R/features-exp.R:85:22: unexpected '>'
    84: twitterfeed = sum_("twitterfeed" %in% .data$source) / .data$n,
    85: tweetbotfori
    ^
    ERROR: unable to collate and parse R files for package 'tweetbotornot'

@JoeFernando
Copy link

JoeFernando commented Jan 9, 2020

Had same issues with line 85. This is how I solved it:

first I did: devtools::install_github(repo = "mkearney/tweetbotornot" )
It bombed out after installing all the dependencies.
Then I downloaded the the zip file from github
I then opened the unzipped directory via Rstudio
Opened features-exp.R (this is in the R directory)
Then removed line 85 and replaced it the correct line of code from: c314b1c
Important, that you copy the code, I tried to manually update it and it did not work for some reason.
Then build the library by pressing shft + crtl + b in rstudio
You are now good to go with library(tweetbotornot)

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

6 participants