Comments (4)
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.
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.
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.
multiCore() returns 1L on Windows.
from packagerank.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packagerank.