Git Product home page Git Product logo

Comments (4)

lindbrook avatar lindbrook commented on June 8, 2024

If possible, could I see the error for packageRank(all.filters = TRUE)?

I think I've fixed the filteredDownloads() error in 'packageRank' 0.6.0.9015.

from packagerank.

JWiley avatar JWiley commented on June 8, 2024

Thanks for the speedy reply.
I tried the latest dev version, but still giving the same error.
Turning on debug mode, the error in filteredDownloads() gets triggered by this line:

    cran_log <- packageLog(packages = packages, date = ymd, memoization = memoization)

So then I tried using packageLog() on its own, with the options that I believe filteredDownloads() would pass:

cran_log <- packageLog(packages = "MplusAutomation", date = "2022-03-01", memoization = TRUE)

That errors out with same error, due to this code:

    out <- parallel::mclapply(out, function(x) {
        if (!"t2" %in% names(x)) 
            x$date.time <- dateTime(x$date, x$time)
        tmp <- x[order(x$date.time), ]
        tmp$date.time <- NULL
        tmp
    }, mc.cores = cores)

However, packagerLog() works fine if I set:

cran_log <- packageLog(packages = "MplusAutomation", date = "2022-03-01", memoization = TRUE, multi.core = FALSE)

So putting it together, I think the issue is that the multi.core argument is not passed from filteredDownloads() to packageLog() the first time it is called.

To your question on packageRank() I tried it again and when I set multi.core = FALSE it is all working as expected --- I may have forgotten the need to set multi.core = FALSE the first time I reported it giving me errors. If so my apologies. Anyway, seems to be working now.

from packagerank.

lindbrook avatar lindbrook commented on June 8, 2024

When you get a chance, would you try 'packageRank' 0.6.0.9016? You should no longer have to set multi.core = FALSE (For now, on Windows, the number of cores defaults to one regardless of the value of multi.core).

At minimum, the following should work:

packageRank(packages = "MplusAutomation", date = "2022-03-01", all.filters = TRUE)
packageLog(packages = "MplusAutomation", date = "2022-03-01", all.filters = TRUE)
filteredDownloads(packages = "MplusAutomation", date = "2022-03-01")

from packagerank.

lindbrook avatar lindbrook commented on June 8, 2024

multiCore() returns 1L on Windows.

from packagerank.

Related Issues (5)

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.