Code Monkey home page Code Monkey logo

Comments (14)

erzakiev avatar erzakiev commented on July 19, 2024 2

to install specifically the gdata v. 2.19 (last v before they removed the function)

packageurl <- "https://cran.r-project.org/src/contrib/Archive/gdata/gdata_2.19.0.tar.gz"
install.packages(packageurl, repos=NULL, type="source")

from readwriter.

ahoffrichter avatar ahoffrichter commented on July 19, 2024 1

Hmm yes, I have '3.0.0'
Ok, thanks for your help. I'll try the quick fix for now.
Sorry for the inconvenience.

Quick fix worked!

from readwriter.

vertesy avatar vertesy commented on July 19, 2024

from readwriter.

ahoffrichter avatar ahoffrichter commented on July 19, 2024

Hi Abel,

thanks! In case you need more info on my setup, here the sessionInfo()

> sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.0

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Europe/Berlin
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] miniUI_0.1.1.1    compiler_4.3.1    crayon_1.5.2      promises_1.2.1    Rcpp_1.0.11       stringr_1.5.0     callr_3.7.3      
 [8] later_1.3.1       fastmap_1.1.1     mime_0.12         R6_2.5.1          curl_5.1.0        htmlwidgets_1.6.2 desc_1.4.2       
[15] profvis_0.3.8     rprojroot_2.0.3   shiny_1.7.5.1     rlang_1.1.1       cachem_1.0.8      stringi_1.7.12    httpuv_1.6.11    
[22] fs_1.6.3          pkgload_1.3.3     memoise_2.0.1     cli_3.6.1         magrittr_2.0.3    ps_1.7.5          digest_0.6.33    
[29] processx_3.8.2    rstudioapi_0.15.0 xtable_1.8-4      remotes_2.4.2.1   devtools_2.4.5    lifecycle_1.0.3   prettyunits_1.2.0
[36] vctrs_0.6.4       glue_1.6.2        urlchecker_1.0.1  sessioninfo_1.2.2 pkgbuild_1.4.2    purrr_1.0.2       usethis_2.2.2    
[43] tools_4.3.1       ellipsis_0.3.2    htmltools_0.5.6.1

from readwriter.

vertesy avatar vertesy commented on July 19, 2024

It completes on my end w/o error:

> devtools::install_github(repo = "vertesy/ReadWriter", upgrade = F)
Downloading GitHub repo vertesy/ReadWriter@HEAD
── R CMD build ──────────────────────────────────────────────────────────────
✔  checking for file/private/var/folders/_2/h3dpbqvx5ydf6d3y8gxh4rl00000gq/T/RtmpHrEThg/remotes3cab84e8542/vertesy-ReadWriter-8dab590/DESCRIPTION’ (395ms)
─  preparingReadWriter:checking DESCRIPTION meta-information ...checking for LF line-endings in source and make files and shell scriptschecking for empty or unneeded directoriesbuildingReadWriter_0.3.0.tar.gzInstalling package into/Users/abel.vertesy/Library/R/x86_64/4.3/library’
(aslibis unspecified)
[1] "Loading Abel's .Rprofile"
Loading required package: colorout
* installing *source* packageReadWriter...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
[1] "Loading Abel's .Rprofile"
Loading required package: colorout
** help
*** installing help indices
** building package indices
[1] "Loading Abel's .Rprofile"
Loading required package: colorout
** testing if installed package can be loaded from temporary location
[1] "Loading Abel's .Rprofile"
Loading required package: colorout
** testing if installed package can be loaded from final location
[1] "Loading Abel's .Rprofile"
Loading required package: colorout
** testing if installed package keeps a record of temporary installation path
* DONE (ReadWriter)

from readwriter.

vertesy avatar vertesy commented on July 19, 2024

I know added

, "Depends" = "Stringendo, gdata" so it should be ok now.

Could you please try?

Since I can't reproduce the error, its hard to troubleshoot.

If still not works than manually install and require gdata.

Please let me know.

from readwriter.

ahoffrichter avatar ahoffrichter commented on July 19, 2024

Unfortunately I still get the same error:

> devtools::install_github(repo = "vertesy/ReadWriter", upgrade = F)
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo vertesy/ReadWriter@HEAD
── R CMD build ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘/private/var/folders/2x/pqn42dhx1392f4w2zfkjg0j80000gn/T/RtmpnRCOGA/remotes58b247ca558/vertesy-ReadWriter-5257388/DESCRIPTION’ ...
─  preparing ‘ReadWriter’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘ReadWriter_0.3.1.tar.gz’
   
* installing *source* package ‘ReadWriter’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Error: object ‘read.xls’ is not exported by 'namespace:gdata'
Execution halted
ERROR: lazy loading failed for package ‘ReadWriter’
* removing ‘/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/ReadWriter’
Warning message:
In i.p(...) :
  installation of package ‘/var/folders/2x/pqn42dhx1392f4w2zfkjg0j80000gn/T//RtmpnRCOGA/file58b734b471e/ReadWriter_0.3.1.tar.gz’ had non-zero exit status

from readwriter.

ahoffrichter avatar ahoffrichter commented on July 19, 2024

Is it a possibility to add manually read.xlsx to the NAMESPACE file of gdata? I had a look into it and read.xlsx does not appear in the "export" section.

(This is the first time I had a look into this kind of file, so I really don't know if this is an option).

from readwriter.

vertesy avatar vertesy commented on July 19, 2024

Hey,

No. There is no read.xlsx in gdata. Only read.xls (wo x)

The ReadWriter code does not contain a reference to read.xlsx.

from readwriter.

vertesy avatar vertesy commented on July 19, 2024

if you require(gdata), does gdata::read.xls print the code?

Sorry for the ongoing trouble.

from readwriter.

ahoffrichter avatar ahoffrichter commented on July 19, 2024

Hey,
ah sorry, I meanr read.xls.
When I run the suggested code I get the Error:

Error: 'read.xls' is not an exported object from 'namespace:gdata'

So it doesn't seem to be in there. Do you think re-installing gdata might help.

thanks for your effort!

from readwriter.

vertesy avatar vertesy commented on July 19, 2024

Hmm it seems that they removed it from gdata

packageVersion('gdata')
[1] ‘2.19.0’
has read.xls

but 3.0 does not. Damn.

I have ‘2.19.0’

from readwriter.

vertesy avatar vertesy commented on July 19, 2024

quick fix, install 2.19
long fix, I need to find a new dependency

from readwriter.

vertesy avatar vertesy commented on July 19, 2024

side note: gdata is not anymore a dependency, only imports but this does not resolve the issue above.

from readwriter.

Related Issues (12)

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.