fun modelling does not seem to work with the update of R ?
Hi Pablo, fun modelling does not seem to work with the update of R ? do you have any ideas on how to solve this bug ? Thanks :)
Hi! Thank you so much for this report :) Can you give more info about it? like error messages/print screen? Now I don't have the time to support the library, I'm open to accepting PR
Hi, it says for R version 4.3.1 (06/07/2023)
Warning in install.packages : package ‘funModeling’ is not available for this version of R
funModeling is out of CRAN Repositories by the moment since some fixes are needed.
You can install the Archives version manually:
https://cran.r-project.org/src/contrib/Archive/funModeling/funModeling_1.9.4.tar.gz
PD: You will have to install dependencies first:
Hmisc, ROCR, gridExtra, pander, reshape2, lazyeval, moments, entropy
as they will not be resolved when installing funModeling manually.
I am having some difficulty installing from the Archives. Would any be able to offer some advice as to a package that is readily available that would perform the same functions as funModeling? Any help is greatly appreciated, thank you.
I am having some difficulty installing from the Archives
Hi, can U describe your steps so far? Maybe I can help.
Currently, the closest I have come is the following:
install.packages("funModeling") Warning in install.packages : package ‘funModeling’ is not available for this version of R
A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Then, I go there and into my terminal and I type :
R CMD INSTALL -l /Users/ben/Downloads/ "funModeling"
Yielding the following error:
Warning: invalid package ‘funModeling’ Error: ERROR: no packages specified
Where I have a folder 'funModeling' in my /Downloads folder with the following downloaded from the old archives:
A little new to R but I've run the following:
#' @importFrom gridExtra grid.arrange #' @importFrom ROCR prediction performance plot #' @importFrom stats cor quantile #' @importFrom RColorBrewer brewer.pal #' @importFrom grDevices colorRampPalette #' @importFrom stats kmeans rbeta hclust cutree dist IQR na.omit sd mad median #' @importFrom utils head tail #' @importFrom moments skewness kurtosis #' @importFrom entropy entropy "_PACKAGE" [1] "_PACKAGE"
i.e. the dependencies and the goal is to draw from loans data and successfully sample means from population distributions, where I have done the following thus far:
library(ggplot2) library(data.table)
path <- "/Users/ben/Desktop/R_Data_Lives_Here" loans <- readr::read_csv(paste0(path, "/loan.csv"))
library(readxl)
Load the Excel workbook
excel_file = paste0("/Data_Dictionary.xlsx")
see available tabs
excel_sheets(paste0(path, excel_file))
meta_loan_stats = read_excel(paste0(path, excel_file), sheet = "LoanStats")
meta_browse_notes = read_excel(paste0(path, excel_file), sheet = "browseNotes")
meta_reject_stats = read_excel(paste0(path, excel_file), sheet = "RejectStats")
meta_loans <- funModeling::df_status(loans, print_results = FALSE) knitr::kable(meta_loans)
When I am defining the meta_loans variable I need to use the "funModeling" package and herein lies my error:
'Error in loadNamespace(x) : there is no package called ‘funModeling’
Still unable to find out how to get the old package that I can use and I am sure it is a simple fix, I am returning to R after not having used it for awhile and am just getting stuck with these little fundamentals. If you would like more details please let me know but I have class from 7-9 PM EST and will be able to answer afterwards no problem.
Hi there, well let's go step by step. You have to run the following commands inside the R Console.
1- First you need to install dependencies:
install.packages(c("Hmisc", "ROCR", "gridExtra", "pander", "reshape2", "lazyeval", "moments", "entropy"))
2- Download package from the CRAN Archives and don't unzip it:
https://cran.r-project.org/src/contrib/Archive/funModeling/funModeling_1.9.4.tar.gz
3- You will have to install it manually:
install.packages("C:/path_to_package/funModeling_1.9.4.tar.gz", repos = NULL, type = "source")
Now you should have funModelling installed and available from R. Hope being helpful Good Hacking :)
(base) ben@Benjamins-MBP Documents % ls funModeling_1.9.4.tar (base) ben@Benjamins-MBP Documents % install.packages("C:/Documents/funModeling_1.9.4.tar.gz", repos = NULL, type = "source") zsh: unknown file attribute: C
On the last step and just getting this error, extremely close, what could be causing this problem?
(base) Benjamins-MBP:~ ben$ install.packages("C:/Documents/funModeling_1.9.4.tar.gz", repos = NULL, type = "source") bash: syntax error near unexpected token `"C:/Documents/funModeling_1.9.4.tar.gz",' -ne
RESOLVED EDIT: It was me casually being a noob, look like I figured it out.
The downloaded binary packages are in /var/folders/zt/j17k7wr12p35myvz_rgf161h0000gn/T//RtmpZhGUtI/downloaded_packages
install.packages("~/Documents/funModeling_1.9.4.tar", repos = NULL) Error in install.packages : type == "both" cannot be used with 'repos = NULL'
install.packages("~/Documents/funModeling_1.9.4.tar", repos = NULL, type = "source")
- installing source package ‘funModeling’ ... ** package ‘funModeling’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices *** copying figures ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path
- DONE (funModeling)
Almost there :)
In the last instruction you must use the full path to the package file you've downloaded in step 2.
install.packages("/full/path/to/package_file", repos = NULL, type = "source")
So, can you run ls -l on the system console to double check the full path of the file?
By the way, you are under a Unix system, right?
RESOLVED EDIT: Great!!
Hello, You can also access the zip from inside the Rstudio IDE. The same way you install any other package, go to Packages. There, instead of selecting CRAN, select “Package Archive File”.
El vie, 6 oct 2023 a la(s) 13:15, Fede654 @.***) escribió:
Almost there :)
In the last instruction you must use the full path to the package file you've downloaded in step 2.
install.packages("/full/path/to/package_file", repos = NULL, type = "source")
So, can you run ls -l on the system console to double check the full path of the file? By the way, you are under a Unix system, right?
— Reply to this email directly, view it on GitHub https://github.com/pablo14/funModeling/issues/20#issuecomment-1751025989, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXVKD3VKHZ6SOIR3PK7QY3X6AVBZAVCNFSM52ZHC4KKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZVGEYDENJZHA4Q . You are receiving this because you commented.Message ID: @.***>
Yes! That's actually the way I did it 😁
I was trying to guide Benjamin into his Console approach of the fixing.
Thanks for commenting out!
El sáb, 7 oct. 2023 09:32, varelasebastian @.***> escribió:
Hello, You can also access the zip from inside the Rstudio IDE. The same way you install any other package, go to Packages. There, instead of selecting CRAN, select “Package Archive File”.
El vie, 6 oct 2023 a la(s) 13:15, Fede654 @.***) escribió:
Almost there :)
In the last instruction you must use the full path to the package file you've downloaded in step 2.
install.packages("/full/path/to/package_file", repos = NULL, type = "source")
So, can you run ls -l on the system console to double check the full path of the file? By the way, you are under a Unix system, right?
— Reply to this email directly, view it on GitHub < https://github.com/pablo14/funModeling/issues/20#issuecomment-1751025989>,
or unsubscribe < https://github.com/notifications/unsubscribe-auth/AHXVKD3VKHZ6SOIR3PK7QY3X6AVBZAVCNFSM52ZHC4KKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZVGEYDENJZHA4Q>
. You are receiving this because you commented.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/pablo14/funModeling/issues/20#issuecomment-1751700245, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3XMEBX2M7LSNNVSK2TWKFLX6FDUHAVCNFSM52ZHC4KKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZVGE3TAMBSGQ2Q . You are receiving this because you commented.Message ID: @.***>