Coder Social home page Coder Social logo

Installation failed about powsimr HOT 6 CLOSED

bvieth avatar bvieth commented on May 29, 2024
Installation failed

from powsimr.

Comments (6)

bvieth avatar bvieth commented on May 29, 2024

Hello,

thanks for trying out powsimR!
So there appears to be an issue with the subversion (SVN).
If you successfully installed all dependencies of powsimR (see also https://github.com/bvieth/powsimR/issues/20#issuecomment-393850730), you can manually install powsimR:

Step 1: Download the source zip from github.
Step 2: Unzip the content.
Step 3: Run the following code (adjust the path as necessary):
library(devtools); source <- devtools::source_pkg("E:/temp/powsimR-master"); devtools::install(source); library(powsimR)

I hope this helps!

Kind regards
Beate

from powsimr.

gcrynen avatar gcrynen commented on May 29, 2024

hi
i still get error message.

library(devtools); source <- devtools::source_pkg("C:/Users/gcrynen/Documents/powsimR-master"); devtools::install(source); library(powsimR)
Error: 'source_pkg' is not an exported object from 'namespace:devtools'

so I added one more : between devtools and source pkg and i get the SVN error.

library(devtools); source <- devtools:::source_pkg("C:/Users/gcrynen/Documents/powsimR-master"); devtools::install(source); library(powsimR)
Installing powsimR
Error: SVN does not seem to be installed on your system.

from powsimr.

bvieth avatar bvieth commented on May 29, 2024

Hello,

One alternative is to download the zip file, unzip it and subsequently zip it as a tar.gz file and then install the source package in R:
install.packages("powsimR.tar.gz", type="source", repos=NULL)

Kind regards
Beate

from powsimr.

gcrynen avatar gcrynen commented on May 29, 2024

Thank you for the advice, I hate to be the bearer of bad news but that didnt work either, here is the log

install.packages("C:/Users/.../Downloads/powsimR.tar.gz", repos = NULL, type = "source")
Installing package into ‘C:/Users/.../Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)

  • installing source package 'powsimR' ...
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** preparing package for lazy loading
    Warning: replacing previous import 'DECENT::lrTest' by 'MAST::lrTest' when loading 'powsimR'
    Error in inDL(x, as.logical(local), as.logical(now), ...) :
    unable to load shared object 'C:/Users/..../Documents/R/win-library/3.4/rtracklayer/libs/x64/rtracklayer.dll':
    `maximal number of DLLs reached...
    ERROR: lazy loading failed for package 'powsimR'
  • removing 'C:/Users/gcrynen/Documents/R/win-library/3.4/powsimR'
    In R CMD INSTALL
    Warning in install.packages :
    running command '"C:/PROGRA1/R/R-341.4/bin/x64/R" CMD INSTALL -l "C:\Users...\Documents\R\win-library\3.4" "C:/Users/.../DROPBO1/DOWNLO1/powsimR.tar.gz"' had status 1
    Warning in install.packages :
    installation of package ‘C:/Users/.../DROPBO1/DOWNLO1/powsimR.tar.gz’ had non-zero exit status

from powsimr.

bvieth avatar bvieth commented on May 29, 2024

Hello,

so from your message above I can see that you have reached the maximum number of DLLs. As explained in the README file, you can set this system environmental variable to a higher number:

Starting with R version 3.4.0, one can set the environmental variable 'R_MAX_NUM_DLLS' to a higher number. I recommend to increase the maximum number of DLLs that can be loaded to at least 500. For that locate the Renviron file: First determine your R_HOME directory (see the output of R.home(component="home")), then in there, you will find the Renviron file in etc/ folder. Open the file with an editor and add the following line: R_MAX_NUM_DLLS=500. Save the changes to the file and restart your R to load the changes.

Kind regards
Beate

from powsimr.

gcrynen avatar gcrynen commented on May 29, 2024

thank you for the quick reply. This helped me through installation but then when i loaded the package it gave me a similar maximum dll error. I looked at ?Startup file and reading that I created a "Renviron.site" file with the same line you suggested (R_MAX_NUM_DLLS=500) under the same etc folder (C:\Program Files\R\R-3.4.4\etc) and it worked!
thank you very much for all the help.

from powsimr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.