Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 462659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:05:49+00:00 2026-05-12T23:05:49+00:00

I am trying to load an hdf5 into R and running into some problems.

  • 0

I am trying to load an hdf5 into R and running into some problems. Here are the steps I took to configure my environment:

  • R 2.10.0 (x64) on Mac OS X 10.6
  • hdf5 1.8.3 installed via macports
  • hdf5_1.6.9.tar.gz from CRAN

I suspect the problem I am having relates to incompatibilities in my version of HDF5 and the one the R module expects. For completeness here is how I installed the R module:

R CMD INSTALL –configure-vars=’CPPFLAGS=-I/opt/local/include’ –configure-args=’–with-hdf5=/opt/local’ hdf5_1.6.9.tar.gz

This builds fine. The library seems to load without issue, but no data is returned when I try to load a file:

library(hdf5)

hdf5load(“test.h5”)

NULL

Yet,

osx:data scott$ h5dump test.h5
HDF5 “test.h5” {
GROUP “/” {
DATASET “dset” {
DATATYPE H5T_STD_I32LE
DATASPACE SIMPLE { ( 31 ) / ( 31 ) }
DATA {
(0): 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192,
(14): 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152,
(22): 4194304, 8388608, 16777216, 33554432, 67108864, 134217728,
(28): 268435456, 536870912, 1073741824
}
}
}
}

Any thoughts?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:05:49+00:00Added an answer on May 12, 2026 at 11:05 pm

    Use the verbosity argument in hdfload() and check your environment using ls(). hdfload() has a side effect, it loads the tables into the current environment, NULL is the default return value. If you use the argument load=TRUE the objects are returned as the components of a named list:

    • load: A logical value. If ‘FALSE’,
      the objects are returned as the
      components of a named list. If ‘TRUE’ (the default), the
      objects are loaded as individual variables with their own
      names – the function returns nothing in this case.

    On my Mac everything works well with the same setup.

    R> rm(list=ls())
    R> ls()
    character(0)
    R> hdf5load("TestHDF5.h5", verbosity=3)
    hdf5_global_verbosity=3 load=1
    Processing object: Dataset0 ...... its a dataset...Dataset has ID335544326
    Dataset has tid 201326902
    Dataset has space id 268435467
    Dataset has rank 1
    Dataset has dims/maxdims: 1 / 1 
    Allocating vector with rank=1 dim=1
    calling vector_io. Hangs here with big datsets
    Setting buffer size in plist
    About to read with bufsize = 50
    in string_ref: count=1, size=25 srcbf=25
    leaving string_ref
     Done read
    in vector_io: permuting
    in vector_io: tidying
    Phew. Done it. calling iinfo->add
    Rank > 1 or not VECSXP
    Calling  hdf5_load_attributes 
    back from  hdf5_load_attributes 
    ...Finished dataset 
    Processing object: Table0 ...... its a dataset...Dataset has ID335544327
    Dataset has tid 201326906
    Dataset has space id 268435468
    Dataset has rank 1
    Dataset has dims/maxdims: 1 / 1 
    Dataset has type = VECSXP and rank 1
    Reading...
    ....done
    in string_ref: count=1, size=25 srcbf=25
    leaving string_ref
    ...Finished dataset 
    NULL
    R> ls()
    [1] "Dataset0" "Table0"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 251k
  • Answers 251k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The py_compile module provides a function to generate a byte-code… May 13, 2026 at 9:25 am
  • Editorial Team
    Editorial Team added an answer If your XSLT is using xsl:include you might receive weird… May 13, 2026 at 9:25 am
  • Editorial Team
    Editorial Team added an answer This is one of the classic composition instead of inheritance… May 13, 2026 at 9:25 am

Related Questions

I am trying to load an xml file that is stored as a resource
I am trying to load an image in the background and then update the
I am trying to load an XML file from a different domain name as
I am trying to load an XML file into a tree view control, edit

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.